|
ACF $AcfVersion:0$
|
Definition of a line in 3D space. More...
#include <CLine3d.h>
Public Member Functions | |
| CLine3d () | |
| Default constructor. | |
| CLine3d (const CVector3d &p1, const CVector3d &p2) | |
| Construct line from two points. | |
| bool | IsNull () const |
| Returns true if the line has zero length. | |
| const CVector3d & | GetPoint1 () const |
| Get first point of the line. | |
| void | SetPoint1 (const CVector3d &point) |
| Set first point of the line. | |
| const CVector3d & | GetPoint2 () const |
| Get second point of the line. | |
| void | SetPoint2 (const CVector3d &point) |
| Set second point of the line. | |
| CVector3d | GetDirection () const |
| Get direction vector of the line (normalized). | |
| double | GetLength () const |
| Get length of the line segment. | |
| double | GetLengthSq () const |
| Get squared length of the line segment (faster than GetLength). | |
| CVector3d | GetPointAt (double t) const |
| Get point at parameter t. | |
| CVector3d | GetClosestPoint (const CVector3d &point) const |
| Get closest point on line to given point. | |
| double | GetClosestParameter (const CVector3d &point) const |
| Get parameter value t for closest point on line to given point. | |
| double | GetDistance (const CVector3d &point) const |
| Calculate distance from point to line segment. | |
| double | GetDistanceSq (const CVector3d &point) const |
| Calculate squared distance from point to line segment (faster). | |
| bool | Serialize (iser::IArchive &archive) |
| Serialize this line to specified archive. | |
| bool | operator== (const CLine3d &line) const |
| bool | operator!= (const CLine3d &line) const |
Definition of a line in 3D space.
Line is stored as two points or equivalently as point and direction.
|
inline |
| double i3d::CLine3d::GetClosestParameter | ( | const CVector3d & | point | ) | const |
Get parameter value t for closest point on line to given point.
| point | Point to find closest point to. |
Get closest point on line to given point.
| point | Point to find closest point to. |
|
inline |
Get direction vector of the line (normalized).
Definition at line 163 of file CLine3d.h.
References i3d::CVector3d::GetNormalized().
| double i3d::CLine3d::GetDistance | ( | const CVector3d & | point | ) | const |
Calculate distance from point to line segment.
Referenced by i3d::Geometry::GetDistance().
| double i3d::CLine3d::GetDistanceSq | ( | const CVector3d & | point | ) | const |
Calculate squared distance from point to line segment (faster).
|
inline |
Get length of the line segment.
Definition at line 169 of file CLine3d.h.
References imath::TVector< Size, Element >::GetLength().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool i3d::CLine3d::Serialize | ( | iser::IArchive & | archive | ) |
Serialize this line to specified archive.
|
inline |
|
inline |