CFx SDK Documentation
2022 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) |
GE_TOOLKIT_EXPORT 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 59 of file GePoint2d.h.
|
inline |
xx | [in] The X-coordinate of this point. |
yy | [in] The Y-coordinate of this point. |
source | [in] Object to be cloned. |
Definition at line 69 of file GePoint2d.h.
|
inline |
Definition at line 73 of file GePoint2d.h.
|
inline |
Returns this point as a vector.
Definition at line 226 of file GePoint2d.h.
|
inline |
Returns the distance from this point to the specified point.
point | [in] Any 2D point. |
Definition at line 236 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 |
Definition at line 247 of file GePoint2d.h.
|
inline |
Definition at line 146 of file GePoint2d.h.
|
inline |
Definition at line 152 of file GePoint2d.h.
|
inline |
Definition at line 174 of file GePoint2d.h.
|
inline |
Definition at line 180 of file GePoint2d.h.
|
inline |
Definition at line 217 of file GePoint2d.h.
|
inline |
Definition at line 188 of file GePoint2d.h.
|
inline |
Definition at line 194 of file GePoint2d.h.
|
inline |
Definition at line 160 of file GePoint2d.h.
|
inline |
Definition at line 166 of file GePoint2d.h.
|
inline |
Definition at line 242 of file GePoint2d.h.
|
inline |
i | [in] Index of coordinate. |
0 returns or references the X-coordinate. 1 returns or references the Y-coordinate.
Definition at line 272 of file GePoint2d.h.
|
inline |
Definition at line 277 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. |
basePoint | [in] Basepoint. |
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. |
|
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 290 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. |
point | [in] The point to be multiplied. |
|
inline |
Sets this point to point + vect, and returns a reference to this point.
point | [in] Any 2D point. |
vect | [in] A 2D vector. |
Definition at line 208 of file GePoint2d.h.
OdGePoint2d& OdGePoint2d::transformBy | ( | const OdGeMatrix2d & | xfm | ) |
Sets this point to the result of the matrix multiplication xfm this point*. Returns a reference to this point.
xfm | [in] A 2D matrix. |
|
friend |
matrix | [in] Any 2D matrix. |
scale | [in] Scale factor. |
point | [in] The point to be multiplied. |
|
friend |
|
static |
Definition at line 80 of file GePoint2d.h.
double OdGePoint2d::x |
Definition at line 299 of file GePoint2d.h.
double OdGePoint2d::y |
Definition at line 300 of file GePoint2d.h.