All Frameworks Class Hierarchy This Framework Previous Next Indexes
Mathematics Class CATMathVector2Df
CATMathVector2Df
Usage: you must use this class as is. You should never derive it.
public class CATMathVector2Df
Class representing a temporary vector in dimension 2 in float precision.
Constructor and Destructor Index
- o
CATMathVector2Df(CATMathDirection2Df&)
- Constructs from a CATMathDirection2Df.
- o
CATMathVector2Df(CATMathPoint2Df&,CATMathPoint2Df&)
- Constructs the CATMathVector2Df as the difference of two CATMathPoint2Dfs.
- o
CATMathVector2Df(CATMathVector2D&)
- Constructs from a CATMathVector.
- o
CATMathVector2Df(CATMathVector2Df&)
- Copy constructor.
- o
CATMathVector2Df(float,float)
- Constructs a (1,0) vector in float precision.
- o
CATMathVector2Df(float[])
- Constructs from an array[2] of float coordinates.
Method Index
- o
AngleTo(CATMathVector2Df&)
- Returns the angle (between 0 and pi radians) with another CATMathVector2Df.
- o
Norm()
- Returns the cartesian norm.
- o
Normalize()
- Normalizes the CATMathVector2Df.
- o
operator*(CATMathVector2Df&)
- Defines the dot product.
- o
operator*(float)
- Defines the right side scalar multiplication.
- o
operator+(CATMathPoint2Df&)
- Defines the translation of a CATMathPoint2Df.
- o
operator+(CATMathVector2Df&)
- Defines the addition of two CATMathVector2Dfs.
- o
operator-(CATMathVector2Df&)
- Defines the substraction of CATMathVector2Dfs.
- o
operator/(float)
- Defines the division by a scalar.
- o
operator^(CATMathVector2Df&)
- Defines the cross product.
Constructor and Destructor
o CATMathVector2Df
-
Constructs from a CATMathDirection2Df.
o CATMathVector2Df
-
Constructs the CATMathVector2Df as the difference of two CATMathPoint2Dfs.
- Returns:
- The CATMathVector2Df iPoint2 - iPoint1.
o CATMathVector2Df
-
Constructs from a CATMathVector.
o CATMathVector2Df
-
Copy constructor.
o CATMathVector2Df
public CATMathVector2Df( | const float | iFirstCoord | = 1.f , |
| const float | iSecondCoord | = 0.f ) |
-
Constructs a (1,0) vector in float precision.
o CATMathVector2Df
public CATMathVector2Df( | const float[] | iCoord) |
-
Constructs from an array[2] of float coordinates.
Methods
o AngleTo
-
Returns the angle (between 0 and pi radians) with another CATMathVector2Df.
Returns 0 if the vector is null.
o Norm
-
Returns the cartesian norm.
o Normalize
-
Normalizes the CATMathVector2Df.
Sets to (1.,0.) if null vector.
o operator*
-
Defines the dot product.
o operator*
-
Defines the right side scalar multiplication.
o operator+
-
Defines the translation of a CATMathPoint2Df.
o operator+
-
Defines the addition of two CATMathVector2Dfs.
o operator-
-
Defines the substraction of CATMathVector2Dfs.
o operator/
-
Defines the division by a scalar.
o operator^
-
Defines the cross product.
This object is included in the file: CATMathVector2Df.h
If needed, your Imakefile.mk should include the module: CATMathematics