Mathematics CATMathVectorf

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


public class CATMathVectorf

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


Constructor and Destructor Index


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

Method Index


o AngleTo(CATMathVectorf&)
Returns the angle (between 0 and pi radians) with another CATMathVectorf.
o AngleTo(CATMathVectorf&,CATMathVectorf&)
Returns the angle expressed in radians with another CATMathVectorf, oriented by a reference vector.
o GetValue(CATMathVector&)
Retrieves a CATMathVectorf as a CATMathVector.
o Norm()
Returns the cartesian norm.
o Normalize()
Normalizes a CATMathVectorf.
o operator*(float)
Defines the right side multiplication by a scalar.
o operator+(CATMathPointf&)
Defines the translation of a CATMathPointf.
o operator+(CATMathVectorf&)
Defines the addition of two CATMathVectorfs.
o operator-()
Defines the opposite of a CATMathVectorf.
o operator-(CATMathVectorf&)
Defines the substraction of CATMathVectorfs.
o operator/(float)
Defines the division by a scalar.

Constructor and Destructor


o CATMathVectorf
public CATMathVectorf( const iCoord)
Constructs from an array[3] of float coordinates.
o CATMathVectorf
public CATMathVectorf( iFirstCoord= 1. ,
iSecondCoord= 0. ,
iThirdCoord= 0. )
Constructs a (1,0,0) vector in float precision.
o CATMathVectorf
public CATMathVectorf( const iVectorInDouble)
Constructs from a CATMathVector.
o CATMathVectorf
public CATMathVectorf( const iVectorToCopy)
Copy constructor.
o CATMathVectorf
public CATMathVectorf( const iDirectionToCopy)
Constructs from a CATMathDirectionf.
o CATMathVectorf
public CATMathVectorf( const iPoint1,
const iPoint2)
Constructs the CATMathVectorf as the difference of two CATMathPointfs.
Returns:
The CATMathVectorf iPoint2 - iPoint1.

Methods


o AngleTo
public AngleTo( const iOtherVector)
Returns the angle (between 0 and pi radians) with another CATMathVectorf.
Returns 0 if the vector is null.
o AngleTo
public AngleTo( const iOtherVector,
const iRefVector)
Returns the angle expressed in radians with another CATMathVectorf, oriented by a reference vector.
o GetValue
public GetValue( ioVectorInDouble)
Retrieves a CATMathVectorf as a CATMathVector.
o Norm
public Norm()
Returns the cartesian norm.
o Normalize
public Normalize()
Normalizes a CATMathVectorf.
Sets to (1,0,0) if null vector.
o operator*
public operator*( const iScalar)
Defines the right side multiplication by a scalar.
o operator+
public operator+( const iPointToTranslate)
Defines the translation of a CATMathPointf.
o operator+
public operator+( const iVectorToAdd)
Defines the addition of two CATMathVectorfs.
o operator-
public operator-()
Defines the opposite of a CATMathVectorf.
o operator-
public operator-( const iVectorToSubstract)
Defines the substraction of CATMathVectorfs.
o operator/
public operator/( const iScalar)
Defines the division by a scalar.

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

Copyright © 1999-2014, Dassault Systèmes. All rights reserved.