CFx SDK Documentation
2023 SP0
|
#include <GeVector3d.h>
Public Attributes | |
double | x |
double | y |
double | z |
Static Public Attributes | |
static GE_STATIC_EXPORT const OdGeVector3d | kIdentity |
static GE_STATIC_EXPORT const OdGeVector3d | kXAxis |
static GE_STATIC_EXPORT const OdGeVector3d | kYAxis |
static GE_STATIC_EXPORT const OdGeVector3d | kZAxis |
This class represents vectors in 3D space.
Corresponding C++ library: TD_Ge
<group OdGe_Classes>
Definition at line 53 of file GeVector3d.h.
|
inline |
source | [in] Object to be cloned. |
xx | [in] X-coordinate. |
yy | [in] Y-coordinate. |
zz | [in] Z-coordinate. |
vect | [in] Any 2D vector. |
plane | [in] Any plane. |
When called with plane and vect, constructs the 3D vector correspoponding to the 2D vector in the coordinates of the plane:
uAxis * vect.x + vAxis * vect.y
where uAxis and vAxis are returned by
plane.get(origin, uAxis, vAxis)
The 3D vector will be parallel to the 2D vector.
Definition at line 78 of file GeVector3d.h.
|
inline |
Definition at line 80 of file GeVector3d.h.
OdGeVector3d::OdGeVector3d | ( | const OdGePlanarEnt & | plane, |
const OdGeVector2d & | vector2d | ||
) |
double OdGeVector3d::angleOnPlane | ( | const OdGePlanarEnt & | plane | ) | const |
Returns the angle of this vector projected onto the specified plane
plane | [in] Any 3D plane. |
plane.getCoordSystem(origin, axis1, axis2)
double OdGeVector3d::angleTo | ( | const OdGeVector3d & | vect | ) | const |
Returns the angle to the specified vector.
vect | [in] Any 3D vector. |
double OdGeVector3d::angleTo | ( | const OdGeVector3d & | vect, |
const OdGeVector3d & | refVector | ||
) | const |
Returns the angle to the specified vector.
vect | [in] Any 3D vector. |
|
inline |
Returns this vector as a point.
Definition at line 647 of file GeVector3d.h.
|
inline |
Returns this vector as a point.
Definition at line 642 of file GeVector3d.h.
|
inline |
Returns the 2D vector, in the coordinate system of the plane, corresponding to the 3D vector.
If no plane is specified, the XY plane is used.
Definition at line 173 of file GeVector3d.h.
OdGeVector2d OdGeVector3d::convert2d | ( | const OdGePlanarEnt & | plane | ) | const |
Returns the 2D vector, in the coordinate system of the plane, corresponding to the 3D vector.
If no plane is specified, the XY plane is used.
OdGeVector3d OdGeVector3d::crossProduct | ( | const OdGeVector3d & | vect | ) | const |
Returns the cross product of this vector and the specified vector.
vect | [in] Any 3D vector. |
|
inline |
Returns the dot product of this vector and the specified vector.
vect | [in] Any 3D vector. |
Definition at line 487 of file GeVector3d.h.
bool OdGeVector3d::isCodirectionalTo | ( | const OdGeVector3d & | vect, |
const OdGeTol & | tol, | ||
OdGeError & | status | ||
) | const |
Returns true if and only if the specified vector is codirectional to this vector within the specified tolerance.
vect | [in] Any 3D vector. |
tol | [in] Geometric tolerance. |
status | [out] Receives the status of test. |
Possible values for status are as follows:
@untitled table kOk
k0This
k0Arg1
bool OdGeVector3d::isCodirectionalTo | ( | const OdGeVector3d & | vect, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns true if and only if the specified vector is codirectional to this vector within the specified tolerance.
vect | [in] Any 3D vector. |
tol | [in] Geometric tolerance. |
bool OdGeVector3d::isEqualTo | ( | const OdGeVector3d & | vect, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns true if and only if vect is identical to this vector, within the specified tolerance.
vect | [in] Any 3D vector. |
tol | [in] Geometric tolerance. |
bool OdGeVector3d::isParallelTo | ( | const OdGeVector3d & | vect, |
const OdGeTol & | tol, | ||
OdGeError & | status | ||
) | const |
Returns true if and only if the specified vector is parallel to this vector within the specified tolerance.
vect | [in] Any 3D vector. |
tol | [in] Geometric tolerance. |
status | [out] Receives the status of test. |
Possible values for status are as follows:
@untitled table kOk
k0This
k0Arg1
bool OdGeVector3d::isParallelTo | ( | const OdGeVector3d & | vect, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns true if and only if the specified vector is parallel to this vector within the specified tolerance.
vect | [in] Any 3D vector. |
tol | [in] Geometric tolerance. |
bool OdGeVector3d::isPerpendicularTo | ( | const OdGeVector3d & | vect, |
const OdGeTol & | tol, | ||
OdGeError & | status | ||
) | const |
Returns true if and only if the specified vector is perpendicular to this vector within the specified tolerance.
vect | [in] Any 3D vector. |
tol | [in] Geometric tolerance. |
status | [out] Receives the status of test. |
Possible values for status are as follows:
@untitled table kOk
k0This
k0Arg1
bool OdGeVector3d::isPerpendicularTo | ( | const OdGeVector3d & | vect, |
const OdGeTol & | tol = OdGeContext::gTol |
||
) | const |
Returns true if and only if the specified vector is perpendicular to this vector within the specified tolerance.
vect | [in] Any 3D vector. |
tol | [in] Geometric tolerance. |
bool OdGeVector3d::isUnitLength | ( | const OdGeTol & | tol = OdGeContext::gTol | ) | const |
Returns true if and only if the length of this vector is 1.0 within the specified tolerance.
tol | [in] Geometric tolerance. |
bool OdGeVector3d::isZeroLength | ( | const OdGeTol & | tol = OdGeContext::gTol | ) | const |
Returns true if and only if the length of this vector is 0.0 within the specified tolerance.
tol | [in] Geometric tolerance. |
unsigned int OdGeVector3d::largestElement | ( | ) | const |
Returns the index of the largest absolute coordinate of this vector.
double OdGeVector3d::length | ( | ) | const |
Returns the length of this vector.
|
inline |
Returns the square of the length of this vector.
Definition at line 366 of file GeVector3d.h.
OdGeVector3d& OdGeVector3d::mirror | ( | const OdGeVector3d & | normalToPlane | ) |
Mirrors the entity about the plane passing through the origin with the specified normal, and returns a reference to the entity.
normalToPlane | [in] Normal to Plane. |
|
inline |
Negates this vector (-x, -y, -z), and returns a reference to this vector.
Definition at line 239 of file GeVector3d.h.
OdGeVector3d OdGeVector3d::normal | ( | const OdGeTol & | tol = OdGeContext::gTol | ) | const |
Returns the unit vector codirectional with this vector.
tol | [in] Geometric tolerance. |
OdGeVector3d& OdGeVector3d::normalize | ( | const OdGeTol & | tol, |
OdGe::ErrorCondition & | status | ||
) |
Sets this vector to the unit vector codirectional with this vector, and returns a reference to this vector
tol | [in] Geometric tolerance. |
status | [out] Receives the status of normalization. |
Possible values for status are as follows:
@untitled table kOk
k0This
OdGeVector3d& OdGeVector3d::normalize | ( | const OdGeTol & | tol = OdGeContext::gTol | ) |
Sets this vector to the unit vector codirectional with this vector, and returns a reference to this vector
tol | [in] Geometric tolerance. |
double OdGeVector3d::normalizeGetLength | ( | double | tol = 1.e-300 | ) |
Sets this vector to the unit vector codirectional with this vector, and returns the length prior to normalization.
OdGeVector3d::operator OdGeMatrix3d | ( | ) | const |
Returns the equivalent 3D tranformation matrix.
bool OdGeVector3d::operator!= | ( | const OdGeVector3d & | vect | ) | const |
|
inline |
Definition at line 175 of file GeVector3d.h.
|
inline |
Definition at line 179 of file GeVector3d.h.
|
inline |
Definition at line 203 of file GeVector3d.h.
|
inline |
Definition at line 206 of file GeVector3d.h.
|
inline |
Definition at line 234 of file GeVector3d.h.
|
inline |
Definition at line 210 of file GeVector3d.h.
|
inline |
Definition at line 213 of file GeVector3d.h.
|
inline |
Definition at line 188 of file GeVector3d.h.
|
inline |
Definition at line 194 of file GeVector3d.h.
bool OdGeVector3d::operator== | ( | const OdGeVector3d & | vect | ) | const |
|
inline |
Definition at line 540 of file GeVector3d.h.
|
inline |
i | [in] Index of coordinate. |
Returns or references the ith coordinate of this vector.
0 returns or references the X-coordinate. 1 returns or references the Y-coordinate. 2 returns or references the Z-coordinate.
Definition at line 538 of file GeVector3d.h.
OdGeVector3d OdGeVector3d::orthoProject | ( | const OdGeVector3d & | planeNormal | ) | const |
OdGeVector3d OdGeVector3d::orthoProject | ( | const OdGeVector3d & | planeNormal, |
const OdGeTol & | tol, | ||
OdGeError & | flag | ||
) | const |
OdGeVector3d OdGeVector3d::perpVector | ( | ) | const |
Returns a vector perpendicular to this one.
OdGeVector3d& OdGeVector3d::rotateBy | ( | double | angle, |
const OdGeVector3d & | axis | ||
) |
Rotates this vector the specified angle about the specified axis, and returns a reference to this vector.
angle | [in] Rotation angle. |
axis | [in] Axis of rotation. |
OdGeVector3d& OdGeVector3d::set | ( | const OdGePlanarEnt & | plane, |
const OdGeVector2d & | vect | ||
) |
Sets this vector to the specified arguments, and returns a reference to this vector.
vect | [in] Any 2D vector. |
plane | [in] Any plane. |
uAxis * vect.x + vAxis * vect.ywhere uAxis and vAxis are returned by
plane.get(origin, uAxis, vAxis)The 3D vector will be parallel to the 2D vector.
|
inline |
Sets this vector to the specified arguments, and returns a reference to this vector.
xx | [in] X-coordinate. |
yy | [in] Y-coordinate. |
zz | [in] Z-coordinate. |
Definition at line 555 of file GeVector3d.h.
void OdGeVector3d::setLength | ( | double | length | ) |
Sets the length of this vector.
OdGeVector3d& OdGeVector3d::setToProduct | ( | const OdGeMatrix3d & | matrix, |
const OdGeVector3d & | vect | ||
) |
Sets this vector to the product matrix * vect and returns a reference to this vector.
matrix | [in] Any 3D matrix. |
vect | [in] Any 3D vector. |
|
inline |
Sets this vector to the product scale * vect and returns a reference to this vector.
vect | [in] Any 3D vector. |
scale | [in] Scale factor. |
Definition at line 111 of file GeVector3d.h.
|
inline |
Sets this vector to vector1 + vector1, and returns a reference to this vector.
vector1 | [in] Any 3D vector. |
vector2 | [in] Any 3D vector. |
Definition at line 224 of file GeVector3d.h.
OdGeVector3d& OdGeVector3d::transformBy | ( | const OdGeMatrix3d & | xfm | ) |
Applies the 3D transformation matrix to this vector.
xfm | [in] 3D transformation matrix. |
|
static |
Definition at line 88 of file GeVector3d.h.
|
static |
Definition at line 89 of file GeVector3d.h.
|
static |
Definition at line 90 of file GeVector3d.h.
|
static |
Definition at line 91 of file GeVector3d.h.
double OdGeVector3d::x |
Definition at line 601 of file GeVector3d.h.
double OdGeVector3d::y |
Definition at line 602 of file GeVector3d.h.
double OdGeVector3d::z |
Definition at line 603 of file GeVector3d.h.