Mathematics CATMathDirection
Usage: you must use this class as is. You should never derive it.
public class CATMathDirection
Class defining a normalized vector.
Use now CATMathVector directly and normalize if needed.
Constructor and Destructor Index
- o
CATMathDirection()
- Constructs a (1,0,0) vector.
- o
CATMathDirection(CATMathVector&)
- Constructs from a CATMathVector.
- o
CATMathDirection(double,double,double)
- Constructs a direction from coordinates.
- o
CATMathDirection(CATMathDirection&)
- Copy constructor.
Method Index
- o
Norm()
- Returns the euclidean norm.
- o
SetCoord(double[])
- Modifies the direction coordinates from an array of three doubles.
- o
SetCoord(double,double,double)
- Modifies the direction coordinates from three doubles.
- o
SetCylindricalCoord(double,CATAngle,double)
- Modifies this CATMathDirection with cylindrical coordinates.
- o
SetSphericalCoord(double,CATAngle,CATAngle)
- Modifies this CATMathDirection with spherical coordinates.
- o
SetX(double)
- Modifies the direction first coordinate.
- o
SetY(double)
- Modifies the direction second coordinate.
- o
SetZ(double)
- Modifies the direction third coordinate.
- o
SquareNorm()
- Returns the square of the euclidean norm.
- o
operator -(CATMathDirection&)
- Defines the opposite of this CATMathDirection.
Constructor and Destructor
o CATMathDirection
public CATMathDirection( | ) |
-
Constructs a (1,0,0) vector.
o CATMathDirection
public CATMathDirection( | const | iVector) |
-
Constructs from a CATMathVector.
o CATMathDirection
public CATMathDirection( | const | iFirstCoord, |
| const | iSecondCoord, |
| const | iThirdCoord) |
-
Constructs a direction from coordinates.
o CATMathDirection
public CATMathDirection( | const | iDirectionToCopy) |
-
Copy constructor.
Methods
o Norm
-
Returns the euclidean norm.
o SetCoord
public SetCoord( | const | iCoord) |
-
Modifies the direction coordinates from an array of three doubles.
o SetCoord
public SetCoord( | const | iFirstCoord, |
| const | iSecondCoord, |
| const | iThirdCoord) |
-
Modifies the direction coordinates from three doubles.
o SetCylindricalCoord
public SetCylindricalCoord( | const | iRadius, |
| const | iAngle, |
| const | iHeight) |
-
Modifies this CATMathDirection with cylindrical coordinates.
iAngle is expressed in radians.
o SetSphericalCoord
public SetSphericalCoord( | const | iRadius, |
| const | iLongitudeAngle, |
| const | iLatitudeAngle) |
-
Modifies this CATMathDirection with spherical coordinates.
iLongitudeAngle and iLatitudeAngle
are expressed in radians.
o SetX
public SetX( | const | iFirstCoord) |
-
Modifies the direction first coordinate.
o SetY
public SetY( | const | iSecondCoord) |
-
Modifies the direction second coordinate.
o SetZ
public SetZ( | const | iThirdCoord) |
-
Modifies the direction third coordinate.
o SquareNorm
-
Returns the square of the euclidean norm.
o operator -
public operator -( | const | iDirection) |
-
Defines the opposite of this CATMathDirection.
- Parameters:
-
- iDirection
- The CATMathDirection of (u1,u2,u3) coordinates.
- Returns:
- The CATMathDirection of (-u1,-u2,-u3) coordinates.
This object is included in the file: CATMathDirection.h
If needed, your Imakefile.mk should include the module: CATMathematics
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.