API Reference > OdGe Classes > OdGePoint2d Class
OdGePoint2d Class
OdGePoint2d
Syntax
C++
class OdGePoint2d;

GePoint2d.h

This class represents points (locations) in 2D space.

OdGePoint2d may be viewed as an array[2] of doubles. 

Corresponding C++ library: TD_Ge 

 

 
Name 
Description 
 
This is the overview for the OdGePoint2d constructor overload. 
 
Name 
Description 
 
Origin (0,0). 
 
x 
X-coordinate 
 
y 
Y-coordinate 
 
Name 
Description 
 
Returns this point as a vector. 
 
Returns the squared distance from this point to the specified point.
 
 
Returns the distance from this point to the specified point.
 
 
Returns true if and only if the distance from this point to point is within the specified tolerance.
 
 
Mirrors this point about the specified 2D line.
 
 
Rotates this point about the specified basePoint by the specified angle.
 
 
Scales this point by the scale factor about the basepoint.
 
 
set 
Sets this point to the specified X and Y coordinates. Returns a reference to this point.
 
 
Sets this point to point + vect, and returns a reference to this point.
 
 
Sets this point to the result of the matrix multiplication of xfm * this point. Returns a reference to this point.
 
 
Name 
Description 
 
- 
This is the overview for the - operator overload. 
 
!= 
Inequality operator. Returns true if any of the coordinates of this point are not equal to the corresponding coordinates of the specified point.
 
 
* 
Multiplication operator for the OdGePoint2d class.
 
 
*= 
Multiplication operator for the OdGePoint2d class.
 
 
/ 
Division operator for the OdGePoint2d class.
 
 
/= 
Division operator for the OdGePoint2d class.
 
 
[] 
This is the overview for the [] operator overload. 
 
+ 
This is the overview for the + operator overload. 
 
+= 
Addition operator for the OdGePoint2d class.
 
 
-= 
Subtraction operator for the OdGePoint2d class.
 
 
== 
Equality operator. Returns true if all the coordinates of this point are equal to the corresponding coordinates of the specified point.
 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.