CFx SDK Documentation 2024 SP0
|
#include <GePoint3d.h>
Public Attributes | |
double | x |
double | y |
double | z |
Static Public Attributes | |
static GE_STATIC_EXPORT const OdGePoint3d | kOrigin |
Friends | |
GE_TOOLKIT_EXPORT OdGePoint3d | operator* (const OdGeMatrix3d &matrix, const OdGePoint3d &point) |
OdGePoint3d | operator* (double scale, const OdGePoint3d &point) |
This class represents points (locations) in 3D space.
Corresponding C++ library: TD_Ge
<group OdGe_Classes>
Definition at line 56 of file GePoint3d.h.
|
inline |
Default constructor for the OdGePoint3d class.
Definition at line 66 of file GePoint3d.h.
|
inline |
Constructor for the OdGePoint3d class.
xx | [in] The X-coordinate of this point. |
yy | [in] The Y-coordinate of this point. |
zz | [in] The Z-coordinate of this point. |
Definition at line 81 of file GePoint3d.h.
OdGePoint3d::OdGePoint3d | ( | const OdGePlanarEnt & | plane, |
const OdGePoint2d & | pnt2d | ||
) |
Constructor for the OdGePoint3d class.
plane | [in] Any planar entity. |
pnt2d | [in] 2D parameter in a plane's coordinates. |
p + uAxis * pnt2d.x + vAxis * pnt2d.y,
where p, uAxis, and vAxis are returned by the function call plane.get (p, uAxis, vAxis);
|
inline |
Returns this point as a vector.
Definition at line 556 of file GePoint3d.h.
|
inline |
Returns this point as a vector.
Definition at line 549 of file GePoint3d.h.
OdGePoint2d OdGePoint3d::convert2d | ( | ) | const |
Returns the 2D point from this point discarding the Z-coordinate.
OdGePoint2d OdGePoint3d::convert2d | ( | const OdGePlanarEnt & | plane | ) | const |
Returns the 2D point with the coordinates corresponding to the decomposition of the vector * this - p in the basis uAxis, vAxis of the planar entity, where p, uAxis, and vAxis can be found by the function call plane.get(p, uAxis, vAxis).
plane | [in] A plane on which this point lies. |
|
inline |
Returns the squared distance from this point to the specified point.
point | [in] Any 3D point to which a squared distance is measured. |
Definition at line 351 of file GePoint3d.h.
|
inline |
Returns the distance from this point to the specified point.
point | [in] Any 3D point to which a distance is measured. |
Definition at line 339 of file GePoint3d.h.
bool OdGePoint3d::isEqualTo | ( | const OdGePoint3d & | 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 3D point. |
tol | [in] Geometric tolerance. |
OdGePoint3d & OdGePoint3d::mirror | ( | const OdGePlane & | plane | ) |
Mirrors this point about the specified plane.
plane | [in] Mirror plane. |
|
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 3D point to be checked for inequality with this point. |
Definition at line 397 of file GePoint3d.h.
|
inline |
Multiplication operator for the OdGePoint3d class.
scale | [in] Input scale factor. |
Definition at line 205 of file GePoint3d.h.
|
inline |
Multiplication operator for the OdGePoint3d class.
scale | [in] Input scale factor. |
Definition at line 219 of file GePoint3d.h.
|
inline |
Addition operator for the OdGePoint3d class.
vect | [in] Input vector by which a point is translated. |
Definition at line 513 of file GePoint3d.h.
|
inline |
Addition operator for the OdGePoint3d class.
vect | [in] Input vector by which a point is translated. |
Definition at line 519 of file GePoint3d.h.
|
inline |
Subtraction operator for the OdGePoint3d class.
point | [in] Input 3D point, coordinates of which are subtracted from the coordinates of this point. |
Definition at line 543 of file GePoint3d.h.
|
inline |
Subtraction operator for the OdGePoint3d class.
vect | [in] Input vector by which a point is translated. |
Definition at line 528 of file GePoint3d.h.
|
inline |
Subtraction operator for the OdGePoint3d class.
vect | [in] Input vector by which a point is translated. |
Definition at line 534 of file GePoint3d.h.
|
inline |
Division operator for the OdGePoint3d class.
scale | [in] Input scale factor. |
Definition at line 236 of file GePoint3d.h.
|
inline |
Division operator for the OdGePoint3d class.
scale | [in] Input scale factor. |
Definition at line 250 of file GePoint3d.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 3D point to be checked for equality with this point. |
Definition at line 385 of file GePoint3d.h.
|
inline |
References ith coordinate of this point.
i | [in] Index of coordinate. |
Definition at line 442 of file GePoint3d.h.
|
inline |
Returns ith coordinate of this point.
i | [in] Index of coordinate. |
Definition at line 425 of file GePoint3d.h.
OdGePoint3d OdGePoint3d::orthoProject | ( | const OdGePlane & | plane | ) | const |
Returns the 3D point that is the result of the orthogonal projection of this point into the specified plane.
plane | [in] Plane on which this point is to be projected |
OdGePoint3d OdGePoint3d::project | ( | const OdGePlanarEnt & | plane, |
const OdGeVector3d & | vect | ||
) | const |
Projects this point onto the specified plane along the specified vector.
plane | [in] Plane on which this point is to be projected |
vect | [in] Vector defining the projection direction. |
OdGePoint3d & OdGePoint3d::rotateBy | ( | double | angle, |
const OdGeVector3d & | vect, | ||
const OdGePoint3d & | basePoint = OdGePoint3d::kOrigin |
||
) |
Rotates this point about the specified basePoint and axis of rotation by the specified angle.
angle | [in] Rotation angle in radians. |
vect | [in] Axis of rotation. |
basePoint | [in] Basepoint relative to which rotation is computed. |
OdGePoint3d & OdGePoint3d::scaleBy | ( | double | scaleFactor, |
const OdGePoint3d & | basePoint = OdGePoint3d::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. |
OdGePoint3d & OdGePoint3d::set | ( | const OdGePlanarEnt & | plane, |
const OdGePoint2d & | point | ||
) |
Sets the parameters for this point according to the arguments
plane | [in] Any plane. |
point | [in] Any 2D point. |
p + uAxis * point.x + vAxis * point.y,where p, uAxis, and vAxis are returned by the function call plane.get (p, uAxis, vAxis);
OdGePoint3d & OdGePoint3d::set | ( | const OdGePoint2d & | xy, |
double | zz = 0.0 |
||
) |
Sets the parameters for this point according to the arguments.
xy | [in] A 2D point that provides the X and Y coordinates for this point. |
zz | [in] The Z-coordinate of this point. |
|
inline |
Sets the parameters for this point according to the arguments
xx | [in] The X-coordinate of this point. |
yy | [in] The Y-coordinate of this point. |
zz | [in] The Z-coordinate of this point. |
Definition at line 455 of file GePoint3d.h.
OdGePoint3d & OdGePoint3d::setToProduct | ( | const OdGeMatrix3d & | xfm, |
const OdGePoint3d & | point | ||
) |
Sets this point to the product of xfm * point, and returns a reference to this point.
xfm | [in] A 3D matrix with which a specified point is multiplied. |
point | [in] The point to be multiplied. |
OdGePoint3d & OdGePoint3d::setToSum | ( | const OdGePoint3d & | point, |
const OdGeVector3d & | vect | ||
) |
Sets this point to point + vect, and returns a reference to this point.
point | [in] Any 3D point. |
vect | [in] Any 3D vector. |
OdGePoint3d & OdGePoint3d::swapWithPoint | ( | OdGePoint3d & | point | ) |
Swaps coordinates of this point and the specified point.
point | [in] A 3D point's coordinates which are swapped with coordinates of this point. |
OdGePoint3d & OdGePoint3d::transformBy | ( | const OdGeMatrix3d & | xfm | ) |
Sets this point to the result of the matrix multiplication of xfm * this point. Returns a reference to this point.
xfm | [in] A 3D matrix with which this point is multiplied. |
|
friend |
matrix | [in] Any 3D matrix. |
point | [in] The point to be multiplied. |
|
friend |
scale | [in] Scale factor. |
point | [in] The point to be multiplied. |
Definition at line 124 of file GePoint3d.h.
|
static |
Definition at line 106 of file GePoint3d.h.
double OdGePoint3d::x |
Definition at line 495 of file GePoint3d.h.
double OdGePoint3d::y |
Definition at line 496 of file GePoint3d.h.
double OdGePoint3d::z |
Definition at line 497 of file GePoint3d.h.