Mathematics 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()
- Constructs a (1,0,0) vector in float precision.
- o
CATMathDirectionf(float[])
- Constructs from an array[3] of float coordinates.
- o
CATMathDirectionf(float,float,float)
- Constructs a (1,0,0) vector in float precision.
- o
CATMathDirectionf(float,float,float)
- Constructs a CATMathDirectionf from three float coordinates.
- o
CATMathDirectionf(CATMathVectorf&)
- Constructs from a CATMathVectorf.
- 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.
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^(CATMathVectorf&)
- Defines the cross product with a CATMathVectorf.
- o
operator^(CATMathDirectionf&)
- Defines the cross product with another CATMathDirectionf.
Constructor and Destructor
o CATMathDirectionf
public CATMathDirectionf( | ) |
-
Constructs a (1,0,0) vector in float precision.
o CATMathDirectionf
public CATMathDirectionf( | const | iCoord) |
-
Constructs from an array[3] of float coordinates.
o CATMathDirectionf
public CATMathDirectionf( | const | iFirstCoord | = 1. , |
| const | iSecondCoord | = 0., |
| const | iThirdCoord | = 0. ) |
-
Constructs a (1,0,0) vector in float precision.
o CATMathDirectionf
public CATMathDirectionf( | const | iFirstCoord, |
| const | iSecondCoord, |
| const | iThirdCoord) |
-
Constructs a CATMathDirectionf from three float coordinates.
o CATMathDirectionf
public CATMathDirectionf( | const | iVector) |
-
Constructs from a CATMathVectorf.
o CATMathDirectionf
public CATMathDirectionf( | const | iDirectionInDouble) |
-
Constructs from a CATMathDirection.
o CATMathDirectionf
public CATMathDirectionf( | const | iDirectionToCopy) |
-
Copy constructor.
o CATMathDirectionf
public CATMathDirectionf( | const | iPoint1, |
| const | iPoint2) |
-
Constructs the CATMathDirectionf as the difference of two CATMathPointfs.
- Returns:
- The renormalized CATMathDirectionf iPoint2 - iPoint1.
Sets to (1.f,0.f) if null.
Methods
o GetValue
public GetValue( | | oDirectionInDouble) |
-
Retrieves a CATMathDirectionf into a CATMathdirection.
o Normalize
-
Normalizes a CATMathDirection.
Sets to (1,0,0) if null vector. This must be applied if you change
the coordinates.
o operator-
-
Defines the opposite of a CATMathDirectionf.
o operator^
public operator^( | const | iVector) |
-
Defines the cross product with a CATMathVectorf.
o operator^
public operator^( | const | iOtherDirection) |
-
Defines the cross product with another CATMathDirectionf.
This object is included in the file: CATMathDirectionf.h
If needed, your Imakefile.mk should include the module: CATMathematics
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.