Mathematics 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(float[])
- Constructs from an array[2] of float coordinates.
- o
CATMathVector2Df(float,float)
- Constructs a (1,0) vector in float precision.
- o
CATMathVector2Df(CATMathVector2D&)
- Constructs from a CATMathVector.
- o
CATMathVector2Df(CATMathVector2Df&)
- Copy constructor.
- o
CATMathVector2Df(CATMathDirection2Df&)
- Constructs from a CATMathDirection2Df.
- o
CATMathVector2Df(CATMathPoint2Df&,CATMathPoint2Df&)
- Constructs the CATMathVector2Df as the difference of two CATMathPoint2Dfs.
Method Index
- o
AngleTo(CATMathVector2Df&)
- Returns the angle (between -pi and pi radians) with another CATMathVector2Df.
- o
Norm()
- Returns the cartesian norm.
- o
Normalize()
- Normalizes the CATMathVector2Df.
- o
operator*(float)
- Defines the right side scalar multiplication.
- o
operator*(CATMathVector2Df&)
- Defines the dot product.
- 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
public CATMathVector2Df( | const | iCoord) |
-
Constructs from an array[2] of float coordinates.
o CATMathVector2Df
public CATMathVector2Df( | const | iFirstCoord | = 1.f , |
| const | iSecondCoord | = 0.f ) |
-
Constructs a (1,0) vector in float precision.
o CATMathVector2Df
public CATMathVector2Df( | const | iVectorInDouble) |
-
Constructs from a CATMathVector.
o CATMathVector2Df
public CATMathVector2Df( | const | iVectorToCopy) |
-
Copy constructor.
o CATMathVector2Df
public CATMathVector2Df( | const | iDirectionToCopy) |
-
Constructs from a CATMathDirection2Df.
o CATMathVector2Df
public CATMathVector2Df( | const | iPoint1, |
| const | iPoint2) |
-
Constructs the CATMathVector2Df as the difference of two CATMathPoint2Dfs.
- Returns:
- The CATMathVector2Df iPoint2 - iPoint1.
Methods
o AngleTo
public AngleTo( | const | iOtherVector) |
-
Returns the angle (between -pi 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*
public operator*( | const | iScalar) |
-
Defines the right side scalar multiplication.
o operator*
public operator*( | const | iVector2) |
-
Defines the dot product.
o operator+
public operator+( | const | iPoint2) |
-
Defines the translation of a CATMathPoint2Df.
o operator+
public operator+( | const | iVectorToAdd) |
-
Defines the addition of two CATMathVector2Dfs.
o operator-
public operator-( | const | iVectorToSubstract) |
-
Defines the substraction of CATMathVector2Dfs.
o operator/
public operator/( | const | iScalar) |
-
Defines the division by a scalar.
o operator^
public operator^( | const | iVector2) |
-
Defines the cross product.
This object is included in the file: CATMathVector2Df.h
If needed, your Imakefile.mk should include the module: CATMathematics
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.