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

Methods


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