All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

Mathematics Class CATMathDirection2Df

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(CATMathDirection2D&)
Constructs from a CATMathDirection.
o CATMathDirection2Df(CATMathDirection2Df&)
Copy constructor.
o CATMathDirection2Df(CATMathPoint2Df&,CATMathPoint2Df&)
Constructs the CATMathDirection2Df as the difference of two CATMathPoint2Dfs.
o CATMathDirection2Df(CATMathVector2Df&)
Constructs from a CATMathVector2Df.
o CATMathDirection2Df(float,float)
Constructs a (1,0,0) vector expressed in float precision.
o CATMathDirection2Df(float[])
Constructs from an array[2] of float coordinates.

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 CATMathDirection2D& iDirectionInDouble)
Constructs from a CATMathDirection.
o CATMathDirection2Df
public CATMathDirection2Df( const CATMathDirection2Df& iDirectionToCopy)
Copy constructor.
o CATMathDirection2Df
public CATMathDirection2Df( const CATMathPoint2Df& iPoint1,
const CATMathPoint2Df& iPoint2)
Constructs the CATMathDirection2Df as the difference of two CATMathPoint2Dfs.
Returns:
The renormalized CATMathDirection2Df iPoint2 - iPoint1.
Sets to (1.f,0.f) if null.
o CATMathDirection2Df
public CATMathDirection2Df( const CATMathVector2Df& iVector)
Constructs from a CATMathVector2Df.
Sets to (1.f,0.f) if null.
o CATMathDirection2Df
public CATMathDirection2Df( const float iFirstCoord= 1.f ,
const float iSecondCoord= 0.f)
Constructs a (1,0,0) vector expressed in float precision.
o CATMathDirection2Df
public CATMathDirection2Df( const float[] iCoord)
Constructs from an array[2] of float coordinates.

Methods


o Normalize
public void 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 float operator*( const CATMathVector2Df& Vector) const
Defines the dot product.
o operator^
public float operator^( const CATMathVector2Df& iVector) const
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 © 2003, Dassault Systèmes. All rights reserved.