CFx SDK Documentation 2024 SP0
|
#include <GePoint2d.h>
Public Attributes | |
double | x |
double | y |
Static Public Attributes | |
static GE_STATIC_EXPORT const OdGePoint2d | kOrigin |
Friends | |
GE_TOOLKIT_EXPORT OdGePoint2d | operator* (const OdGeMatrix2d &matrix, const OdGePoint2d &point) |
OdGePoint2d | operator* (double scale, const OdGePoint2d &point) |
This class represents points (locations) in 2D space.
Corresponding C++ library: TD_Ge
<group OdGe_Classes>
Definition at line 62 of file GePoint2d.h.
|
inline |
Default constructor for the OdGePoint2d class.
Definition at line 72 of file GePoint2d.h.
|
inline |
Constructor for the OdGePoint2d class.
xx | [in] The X-coordinate of this point. |
yy | [in] The Y-coordinate of this point. |
Definition at line 86 of file GePoint2d.h.
|
inline |
Returns this point as a vector.
Definition at line 459 of file GePoint2d.h.
|
inline |
Returns this point as a vector.
Definition at line 452 of file GePoint2d.h.
|
inline |
Returns the squared distance from this point to the specified point.
point | [in] Any 2D point to which a squared distance is measured. |
Definition at line 317 of file GePoint2d.h.
|
inline |
Returns the distance from this point to the specified point.
point | [in] Any 2D point to which a distance is measured. |
Definition at line 306 of file GePoint2d.h.
bool OdGePoint2d::isEqualTo | ( | const OdGePoint2d & | point, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns true if and only if the distance from this point to point is within the specified tolerance.
point | [in] Any 2D point. |
tol | [in] Geometric tolerance. |
OdGePoint2d & OdGePoint2d::mirror | ( | const OdGeLine2d & | line | ) |
Mirrors this point about the specified 2D line.
line | [in] Mirror Line. |
|
inline |
Inequality operator. Returns true if any of the coordinates of this point are not equal to the corresponding coordinates of the specified point.
point | [in] A 2D point to be checked for inequality with this point. |
Definition at line 344 of file GePoint2d.h.
|
inline |
Multiplication operator for the OdGePoint2d class.
scale | [in] Input scale factor. |
Definition at line 174 of file GePoint2d.h.
|
inline |
Multiplication operator for the OdGePoint2d class.
scale | [in] Input scale factor. |
Definition at line 188 of file GePoint2d.h.
|
inline |
Addition operator for the OdGePoint2d class.
vect | [in] Input vector by which a point is translated. |
Definition at line 418 of file GePoint2d.h.
|
inline |
Addition operator for the OdGePoint2d class.
vect | [in] Input vector by which a point is translated. |
Definition at line 424 of file GePoint2d.h.
|
inline |
Subtraction operator for the OdGePoint2d class.
point | [in] Input 2D point, coordinates of which are subtracted from the coordinates of this point. |
Definition at line 446 of file GePoint2d.h.
|
inline |
Subtraction operator for the OdGePoint2d class.
vect | [in] Input vector by which a point is translated. |
Definition at line 432 of file GePoint2d.h.
|
inline |
Subtraction operator for the OdGePoint2d class.
vect | [in] Input vector by which a point is translated. |
Definition at line 438 of file GePoint2d.h.
|
inline |
Division operator for the OdGePoint2d class.
scale | [in] Input scale factor. |
Definition at line 204 of file GePoint2d.h.
|
inline |
Division operator for the OdGePoint2d class.
scale | [in] Input scale factor. |
Definition at line 218 of file GePoint2d.h.
|
inline |
Equality operator. Returns true if all the coordinates of this point are equal to the corresponding coordinates of the specified point.
point | [in] A 2D point to be checked for equality with this point. |
Definition at line 332 of file GePoint2d.h.
|
inline |
Returns ith coordinate of this point.
i | [in] Index of coordinate. |
Definition at line 371 of file GePoint2d.h.
|
inline |
References ith coordinate of this point.
i | [in] Index of coordinate. |
Definition at line 387 of file GePoint2d.h.
OdGePoint2d & OdGePoint2d::rotateBy | ( | double | angle, |
const OdGePoint2d & | basePoint = kOrigin |
||
) |
Rotates this point about the specified basePoint by the specified angle.
angle | [in] Rotation angle in radians. |
basePoint | [in] Basepoint relative to which rotation is computed. |
OdGePoint2d & OdGePoint2d::scaleBy | ( | double | scaleFactor, |
const OdGePoint2d & | basePoint = kOrigin |
||
) |
Scales this point by the scale factor about the basepoint.
scaleFactor | [in] Scale Factor. The scale factor must be greater than zero. |
basePoint | [in] Basepoint relative to which scaling is computed. |
|
inline |
Sets this point to the specified X and Y coordinates. Returns a reference to this point.
xx | [in] The X-coordinate of this point. |
yy | [in] The Y-coordinate of this point. |
Definition at line 400 of file GePoint2d.h.
OdGePoint2d & OdGePoint2d::setToProduct | ( | const OdGeMatrix2d & | matrix, |
const OdGePoint2d & | point | ||
) |
Sets this point to the result of the matrix multiplication (matrix * point). Returns a reference to this point.
matrix | [in] A 2D matrix with which a specified point is multiplied. |
point | [in] The point to be multiplied. |
OdGePoint2d & OdGePoint2d::setToSum | ( | const OdGePoint2d & | point, |
const OdGeVector2d & | vect | ||
) |
Sets this point to point + vect, and returns a reference to this point.
point | [in] Any 2D point. |
vect | [in] A 2D vector. |
OdGePoint2d & OdGePoint2d::transformBy | ( | const OdGeMatrix2d & | xfm | ) |
Sets this point to the result of the matrix multiplication of xfm * this point. Returns a reference to this point.
xfm | [in] A 2D matrix with which this point is multiplied. |
|
friend |
matrix | [in] Any 2D matrix. |
point | [in] The point to be multiplied. |
|
friend |
scale | [in] Scale factor. |
point | [in] The point to be multiplied. |
Definition at line 111 of file GePoint2d.h.
|
static |
Definition at line 93 of file GePoint2d.h.
double OdGePoint2d::x |
Definition at line 409 of file GePoint2d.h.
double OdGePoint2d::y |
Definition at line 410 of file GePoint2d.h.