From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/a02762.html | 290 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 290 insertions(+) create mode 100644 docs/doxygen/nel/a02762.html (limited to 'docs/doxygen/nel/a02762.html') diff --git a/docs/doxygen/nel/a02762.html b/docs/doxygen/nel/a02762.html new file mode 100644 index 00000000..be5cacbb --- /dev/null +++ b/docs/doxygen/nel/a02762.html @@ -0,0 +1,290 @@ + + +NeL: NLMISC::CLineColor class Reference + + + +
+

NLMISC::CLineColor Class Reference

#include <geom_ext.h> +

+

Inheritance diagram for NLMISC::CLineColor: +

+ +NLMISC::CLine + +

Detailed Description

+A line with 2 color.
Author:
Lionel Berenguier

+Nevrax France

+
Date:
2000
+ +

+ +

+Definition at line 54 of file geom_ext.h. + + + + + + + + + + + + + + + + + + + +

Public Member Functions

 CLineColor ()
 Constructor.

CLineColoroperator= (const CLine &line)
void project (const CVector &inV, CVector &outV)
 Project a vector on this line.


Data Fields

CRGBA Color0
CRGBA Color1
CVector V0
CVector V1
+


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + +
NLMISC::CLineColor::CLineColor  )  [inline]
+
+ + + + + +
+   + + +

+Constructor. +

+ +

+Definition at line 62 of file geom_ext.h. +

+

00062 {}
+
+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + +
CLineColor& NLMISC::CLineColor::operator= const CLine line  )  [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 64 of file geom_ext.h. +

+

00065         {
+00066                 *((CLine*)this)= line;
+00067                 return *this;
+00068         }
+
+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NLMISC::CLine::project const CVector inV,
CVector outV
[inherited]
+
+ + + + + +
+   + + +

+Project a vector on this line. +

+ +

+Definition at line 34 of file line.cpp. +

+References NLMISC::CVector::sqrnorm(). +

+

00035 {
+00036         CVector seg = V1 - V0;  
+00037         float n = seg.sqrnorm();
+00038         if (n == 0.f)
+00039         {
+00040                 outV = V0;
+00041         }
+00042         else
+00043         {
+00044                 float dp = (inV - V0) * seg;
+00045                 outV = V0 + (dp /  n) * seg;
+00046         }
+00047 }
+
+


Field Documentation

+

+ + + + +
+ + +
CRGBA NLMISC::CLineColor::Color0 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 57 of file geom_ext.h. +

+Referenced by NL3D::CDriverUser::drawLine().

+

+ + + + +
+ + +
CRGBA NLMISC::CLineColor::Color1 +
+
+ + + + + +
+   + + +

+ +

+Definition at line 57 of file geom_ext.h. +

+Referenced by NL3D::CDriverUser::drawLine().

+

+ + + + +
+ + +
CVector NLMISC::CLine::V0 [inherited] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 48 of file line.h. +

+Referenced by NL3D::CPSLocatedBindable::displayIcon2d(), and NL3D::CDriverUser::drawLine().

+

+ + + + +
+ + +
CVector NLMISC::CLine::V1 [inherited] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 48 of file line.h. +

+Referenced by NL3D::CPSLocatedBindable::displayIcon2d(), and NL3D::CDriverUser::drawLine().

+


The documentation for this class was generated from the following file: +
Generated on Tue Mar 16 13:20:13 2004 for NeL by + +doxygen +1.3.6
+ + -- cgit v1.2.1