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
public CATMathVector2Df( const CATMathDirection2Df& iDirectionToCopy)
Constructs from a CATMathDirection2Df.
o CATMathVector2Df
public CATMathVector2Df( const CATMathPoint2Df& iPoint1,
const CATMathPoint2Df& iPoint2)
Constructs the CATMathVector2Df as the difference of two CATMathPoint2Dfs.
Returns:
The CATMathVector2Df iPoint2 - iPoint1.
o CATMathVector2Df
public CATMathVector2Df( const CATMathVector2D& iVectorInDouble)
Constructs from a CATMathVector.
o CATMathVector2Df
public CATMathVector2Df( const CATMathVector2Df& iVectorToCopy)
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
public double AngleTo( const CATMathVector2Df& iOtherVector)const
Returns the angle (between 0 and pi radians) with another CATMathVector2Df.
Returns 0 if the vector is null.
o Norm
public float Norm()const
Returns the cartesian norm.
o Normalize
public void Normalize()
Normalizes the CATMathVector2Df.
Sets to (1.,0.) if null vector.
o operator*
public float operator*( const CATMathVector2Df& iVector2)const
Defines the dot product.
o operator*
public CATMathVector2Df operator*( const float iScalar)const
Defines the right side scalar multiplication.
o operator+
public CATMathPoint2Df operator+( const CATMathPoint2Df& iPoint2)const
Defines the translation of a CATMathPoint2Df.
o operator+
public CATMathVector2Df operator+( const CATMathVector2Df& iVectorToAdd)const
Defines the addition of two CATMathVector2Dfs.
o operator-
public CATMathVector2Df operator-( const CATMathVector2Df& iVectorToSubstract)const
Defines the substraction of CATMathVector2Dfs.
o operator/
public CATMathVector2Df operator/( const float iScalar)const
Defines the division by a scalar.
o operator^
public float operator^( const CATMathVector2Df& iVector2)const
Defines the cross product.

This object is included in the file: CATMathVector2Df.h
If needed, your Imakefile.mk should include the module: CATMathematics

Copyright © 2003, Dassault Systèmes. All rights reserved.