All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

Mathematics Class CATMathDirectionf

CATMathDirectionf
 

Usage: you must use this class as is. You should never derive it.


public class CATMathDirectionf

Class representing a temporary normalized vector in dimension 3 in float precision.

Warning: the coordinates ( float x , y , z ;) are public. If you change them, you must apply Normalize.


Constructor and Destructor Index


o CATMathDirectionf(CATMathDirection&)
Constructs from a CATMathDirection.
o CATMathDirectionf(CATMathDirectionf&)
Copy constructor.
o CATMathDirectionf(CATMathPointf&,CATMathPointf&)
Constructs the CATMathDirectionf as the difference of two CATMathPointfs.
o CATMathDirectionf(CATMathVectorf&)
Constructs from a CATMathVectorf.
o CATMathDirectionf(float,float,float)
Constructs a (1,0,0) vector in float precision.
o CATMathDirectionf(float[])
Constructs from an array[3] of float coordinates.

Method Index


o GetValue(CATMathDirection&)
Retrieves a CATMathDirectionf into a CATMathdirection.
o Normalize()
Normalizes a CATMathDirection.
o operator-()
Defines the opposite of a CATMathDirectionf.
o operator^(CATMathDirectionf&)
Defines the cross product with another CATMathDirectionf.
o operator^(CATMathVectorf&)
Defines the cross product with a CATMathVectorf.

Constructor and Destructor


o CATMathDirectionf
public CATMathDirectionf( const CATMathDirection& iDirectionInDouble)
Constructs from a CATMathDirection.
o CATMathDirectionf
public CATMathDirectionf( const CATMathDirectionf& iDirectionToCopy)
Copy constructor.
o CATMathDirectionf
public CATMathDirectionf( const CATMathPointf& iPoint1,
const CATMathPointf& iPoint2)
Constructs the CATMathDirectionf as the difference of two CATMathPointfs.
Returns:
The renormalized CATMathDirectionf iPoint2 - iPoint1.
Sets to (1.f,0.f) if null.
o CATMathDirectionf
public CATMathDirectionf( const CATMathVectorf& iVector)
Constructs from a CATMathVectorf.
o CATMathDirectionf
public CATMathDirectionf( const float iFirstCoord= 1. ,
const float iSecondCoord= 0.,
const float iThirdCoord= 0. )
Constructs a (1,0,0) vector in float precision.
o CATMathDirectionf
public CATMathDirectionf( const float[] iCoord)
Constructs from an array[3] of float coordinates.

Methods


o GetValue
public void GetValue(CATMathDirection& oDirectionInDouble) const
Retrieves a CATMathDirectionf into a CATMathdirection.
o Normalize
public void Normalize()
Normalizes a CATMathDirection.
Sets to (1,0,0) if null vector. This must be applied if you change the coordinates.
o operator-
public CATMathDirectionf operator-()const
Defines the opposite of a CATMathDirectionf.
o operator^
public CATMathVectorf operator^( const CATMathDirectionf& iOtherDirection) const
Defines the cross product with another CATMathDirectionf.
o operator^
public CATMathVectorf operator^( const CATMathVectorf& iVector) const
Defines the cross product with a CATMathVectorf.

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

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