All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

Mathematics Class CATMathPoint2Df

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(CATMathPoint2D&)
Constructs a CATMathPoint2Df by using a CATMathPoint2D.
o CATMathPoint2Df(CATMathPoint2Df&)
Copy constructor.
o CATMathPoint2Df(float,float)
Constructs a CATMathPoint2Df with (0,0) float coordinates.
o CATMathPoint2Df(float[])
Constructs a CATMathPoint2Df from an array of 2 floats.

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 CATMathPoint2D& iPointInDouble)
Constructs a CATMathPoint2Df by using a CATMathPoint2D.
o CATMathPoint2Df
public CATMathPoint2Df( const CATMathPoint2Df& iPointfToCopy)
Copy constructor.
o CATMathPoint2Df
public CATMathPoint2Df( const float iFirstCoord= 0.,
const float iSecondCoord= 0.)
Constructs a CATMathPoint2Df with (0,0) float coordinates.
o CATMathPoint2Df
public CATMathPoint2Df( const float[] iCoord)
Constructs a CATMathPoint2Df from an array of 2 floats.

Methods


o DistanceL1To
public float DistanceL1To( const CATMathPoint2Df& iOtherPointf)const
Returns the sum of absolute difference between coordinates to another CATMathPoint2Df.
o DistanceTo
public float DistanceTo( const CATMathPoint2Df& iOtherPointf)const
Returns the distance to another CATMathPoint2Df.
o GetMaximum
public void GetMaximum( const CATMathPoint2Df& iOtherPointf)
Sets the coordinates to the max of the coordinates of 2 points.
o GetMinimum
public void GetMinimum( const CATMathPoint2Df& iOtherPointf)
Sets the coordinates to the min of the coordinates of 2 points.
o operator+
public CATMathPoint2Df operator+( const CATMathVector2Df& iVectorf)const
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 CATMathVector2Df operator-( const CATMathPoint2Df& iPoint2)const
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 © 2003, Dassault Systèmes. All rights reserved.