Mathematics CATMathDirection2Df
Usage: you must use this class as is. You should never derive it.
public class CATMathDirection2Df
Class representing a temporary normalized vector in dimension 3 in float
precision.
Warning: The coordinates ( float x , y ;) are public.
If you change them, you must apply Normalize.
Constructor and Destructor Index
- o
CATMathDirection2Df(float[])
- Constructs from an array[2] of float coordinates.
- o
CATMathDirection2Df(float,float)
- Constructs a (1,0,0) vector expressed in float precision.
- o
CATMathDirection2Df(CATMathVector2Df&)
- Constructs from a CATMathVector2Df.
- o
CATMathDirection2Df(CATMathDirection2D&)
- Constructs from a CATMathDirection.
- o
CATMathDirection2Df(CATMathDirection2Df&)
- Copy constructor.
- o
CATMathDirection2Df(CATMathPoint2Df&,CATMathPoint2Df&)
- Constructs the CATMathDirection2Df as the difference of two CATMathPoint2Dfs.
Method Index
- o
Normalize()
- Normalizes a CATMathDirection2Df.
- o
operator*(CATMathVector2Df&)
- Defines the dot product.
- o
operator^(CATMathVector2Df&)
- Defines the determinant of a CATMathDirection2Df and a CATMathVector2Df.
Constructor and Destructor
o CATMathDirection2Df
public CATMathDirection2Df( | const | iCoord) |
-
Constructs from an array[2] of float coordinates.
o CATMathDirection2Df
public CATMathDirection2Df( | const | iFirstCoord | = 1.f , |
| const | iSecondCoord | = 0.f) |
-
Constructs a (1,0,0) vector expressed in float precision.
o CATMathDirection2Df
public CATMathDirection2Df( | const | iVector) |
-
Constructs from a CATMathVector2Df.
Sets to (1.f,0.f) if null.
o CATMathDirection2Df
public CATMathDirection2Df( | const | iDirectionInDouble) |
-
Constructs from a CATMathDirection.
o CATMathDirection2Df
public CATMathDirection2Df( | const | iDirectionToCopy) |
-
Copy constructor.
o CATMathDirection2Df
public CATMathDirection2Df( | const | iPoint1, |
| const | iPoint2) |
-
Constructs the CATMathDirection2Df as the difference of two CATMathPoint2Dfs.
- Returns:
- The renormalized CATMathDirection2Df iPoint2 - iPoint1.
Sets to (1.f,0.f) if null.
Methods
o Normalize
-
Normalizes a CATMathDirection2Df.
Sets to (1.f,0.f) if null vector. This must be applied if you change
the coordinates.
o operator*
public operator*( | const | Vector) |
-
Defines the dot product.
o operator^
public operator^( | const | iVector) |
-
Defines the determinant of a CATMathDirection2Df and a CATMathVector2Df.
This object is included in the file: CATMathDirection2Df.h
If needed, your Imakefile.mk should include the module: CATMathematics
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.