All Frameworks Class Hierarchy This Framework Previous Next Indexes
Mathematics Class CATMathDirection2D
Mathematics.CATMathVector2D
|
+---CATMathDirection2D
Usage: you must use this class as is. You should never derive it.
public class CATMathDirection2D
Defines a normalized vector in 2D space.
Use now a CATMathVector2D and normalize it if needed.
Constructor and Destructor Index
- o
CATMathDirection2D()
- Constructs a (1,0) vector.
- o
CATMathDirection2D(CATMathDirection2D&)
- Copy constructor.
- o
CATMathDirection2D(CATMathVector2D&)
- Constructs a CATMathDirection2D from a CATMathVector2D.
- o
CATMathDirection2D(double,double)
- Constructs a CATMathDirection2D from two coordinates.
Method Index
- o
GetCoord(double&,double&)
- Retrieves the CATMathDirection2D coordinates in two doubles.
- o
GetCoord(double[])
- Retrieves the CATMathDirection2D coordinates in an array of two doubles.
- o
SetCoord(double,double)
- Modifies the CATMathDirection2D coordinates from two doubles.
- o
SetCoord(double[])
- Modifies the CATMathDirection2D coordinates from an array of two doubles.
- o
SetX(double)
- Modifies the CATMathDirection2D first coordinate.
- o
SetY(double)
- Modifies the CATMathDirection2D second coordinate.
- o
operator -()
- Defines the opposite of a CATMathVector2D.
Constructor and Destructor
o CATMathDirection2D
public CATMathDirection2D( | ) |
-
Constructs a (1,0) vector.
o CATMathDirection2D
-
Copy constructor.
o CATMathDirection2D
-
Constructs a CATMathDirection2D from a CATMathVector2D.
o CATMathDirection2D
public CATMathDirection2D( | const double | iFirstCoord, |
| const double | iSecondCoord) |
-
Constructs a CATMathDirection2D from two coordinates.
Methods
o GetCoord
public void GetCoord( | double& | ioFirstCoord, |
| double& | ioSecondCoord) const |
-
Retrieves the CATMathDirection2D coordinates in two doubles.
o GetCoord
public void GetCoord( | double[] | ioCoord) const |
-
Retrieves the CATMathDirection2D coordinates in an array of two doubles.
- Parameters:
-
- ioCoord
- The array of 2 doubles that must be previously allocated.
o SetCoord
public void SetCoord( | const double | iFirstCoord, |
| const double | iSecondCoord) |
-
Modifies the CATMathDirection2D coordinates from two doubles.
o SetCoord
public void SetCoord( | const double[] | iCoord) |
-
Modifies the CATMathDirection2D coordinates from an array of two doubles.
o SetX
public void SetX( | const double | iFirstCoord) |
-
Modifies the CATMathDirection2D first coordinate.
o SetY
public void SetY( | const double | iSecondCoord) |
-
Modifies the CATMathDirection2D second coordinate.
o operator -
-
Defines the opposite of a CATMathVector2D.
This object is included in the file: CATMathDirection2D.h
If needed, your Imakefile.mk should include the module: CATMathematics