Mathematics CATMathPointf
Usage: you must use this class as is. You should never derive it.
public class CATMathPointf
Class representing a mathematical cartesian 3D-point in float precision.
Constructor and Destructor Index
- o
CATMathPointf(float[])
- Constructs a CATMathPointf from an array of 3 floats.
- o
CATMathPointf(CATMathPoint&)
- Constructs a CATMathPointf by using a CATMathPoint.
- o
CATMathPointf(float,float,float)
- Constructs CATMathPointf with (0,0,0) float coordinates.
- o
CATMathPointf(CATMathPointf&)
- Copy constructor.
Method Index
- o
DistanceL1To(CATMathPointf&)
- Returns the sum of the absolute difference between this
and another CATMathPointf.
- o
DistanceTo(CATMathPointf&)
- Returns the distance to another CATMathPointf.
- o
GetMaximum(CATMathPointf&)
- Sets the coordinates to the max of the coordinates of 2 CATMathPointfs.
- o
GetMinimum(CATMathPointf&)
- Sets the coordinates to the min of the coordinates of 2 CATMathPointfs.
- o
GetValue(CATMathPoint&)
- Retrieves as a CATMathPoint.
- o
operator+(CATMathVectorf&)
- Translates a CATMathPointf by a CATMathVectorf.
- o
operator-(CATMathPointf&)
- Builds a CATMathVectorf as the difference of two CATMathPointfs.
- o
operator-(CATMathVectorf&)
- Translates a CATMathPointf by a CATMathVectorf.
Constructor and Destructor
o CATMathPointf
public CATMathPointf( | const | iCoord) |
-
Constructs a CATMathPointf from an array of 3 floats.
o CATMathPointf
public CATMathPointf( | const | iPointInDouble) |
-
Constructs a CATMathPointf by using a CATMathPoint.
o CATMathPointf
public CATMathPointf( | const | iFirstCoord | = 0. , |
| const | iSecondCoord | = 0. , |
| const | iThirdCoord | = 0. ) |
-
Constructs CATMathPointf with (0,0,0) float coordinates.
o CATMathPointf
public CATMathPointf( | const | iPointfToCopy) |
-
Copy constructor.
Methods
o DistanceL1To
public DistanceL1To( | const | iOtherPointf) |
-
Returns the sum of the absolute difference between this
and another CATMathPointf.
o DistanceTo
public DistanceTo( | const | iOtherPointf) |
-
Returns the distance to another CATMathPointf.
o GetMaximum
public GetMaximum( | const | iOtherPointf) |
-
Sets the coordinates to the max of the coordinates of 2 CATMathPointfs.
o GetMinimum
public GetMinimum( | const | iOtherPointf) |
-
Sets the coordinates to the min of the coordinates of 2 CATMathPointfs.
o GetValue
public GetValue( | | oPointInDouble) |
-
Retrieves as a CATMathPoint.
o operator+
public operator+( | const | iVectorf) |
-
Translates a CATMathPointf by a CATMathVectorf.
- Parameters:
-
- iPoint1
- The CATMathPointf of (p1,p2,p3) coordinates.
- iVectorf
- The CATMathVectorf of (u1,u2,u3) coordinates,
- Returns:
- The CATMathPointf of (p1+u1,p2+u2,p3+u3) coordinates.
o operator-
public operator-( | const | iPoint2) |
-
Builds a CATMathVectorf as the difference of two CATMathPointfs.
Note that the iPoint1iPoint2 vector is given by iPoint2-iPoint1.
- Parameters:
-
- iPoint1
- The CATMathPointf of (p1,p2,p3) coordinates.
- iPoint2
- The CATMathPointf of (q1,q2,q3) coordinates.
- Returns:
- The CATMathVectorf of (p1-q1,p2-q2,p3-q3) coordinates.
o operator-
public operator-( | const | iVectorf) |
-
Translates a CATMathPointf by a CATMathVectorf.
- Parameters:
-
- iPoint1
- The CATMathPointf of (p1,p2,p3) coordinates.
- iVectorf
- The CATMathVectorf of (u1,u2,u3) coordinates,
- Returns:
- The CATMathPointf of (p1-u1,p2-u2,p3-u3) coordinates.
This object is included in the file: CATMathPointf.h
If needed, your Imakefile.mk should include the module: CATMathematics
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.