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