|
HDK
|
#include <ImathLine.h>
Public Types | |
| typedef T | BaseType |
| typedef T | value_type |
Public Member Functions | |
Constructors | |
| IMATH_HOSTDEVICE constexpr | Line3 () IMATH_NOEXCEPT |
| Uninitialized by default. More... | |
| IMATH_HOSTDEVICE IMATH_CONSTEXPR14 | Line3 (const Vec3< T > &point1, const Vec3< T > &point2) IMATH_NOEXCEPT |
Manipulation | |
| IMATH_HOSTDEVICE void | set (const Vec3< T > &point1, const Vec3< T > &point2) IMATH_NOEXCEPT |
Utility Methods | |
| IMATH_HOSTDEVICE constexpr Vec3< T > | operator() (T parameter) const IMATH_NOEXCEPT |
| IMATH_HOSTDEVICE constexpr T | distanceTo (const Vec3< T > &point) const IMATH_NOEXCEPT |
| Return the distance to the given point. More... | |
| IMATH_HOSTDEVICE IMATH_CONSTEXPR14 T | distanceTo (const Line3< T > &line) const IMATH_NOEXCEPT |
| Return the distance to the given line. More... | |
| IMATH_HOSTDEVICE constexpr Vec3< T > | closestPointTo (const Vec3< T > &point) const IMATH_NOEXCEPT |
| Return the point on the line closest to the given point. More... | |
| IMATH_HOSTDEVICE IMATH_CONSTEXPR14 Vec3< T > | closestPointTo (const Line3< T > &line) const IMATH_NOEXCEPT |
| Return the point on the line closest to the given line. More... | |
Public Attributes | |
Direct access to member fields | |
| Vec3< T > | pos |
| A point on the line. More... | |
| Vec3< T > | dir |
| The direction of the line. More... | |
The Line3 class represents a 3D line, defined by a point and a direction vector.
Definition at line 24 of file ImathLine.h.
| typedef T Line3< T >::value_type |
Definition at line 87 of file ImathLine.h.
|
inline |
Uninitialized by default.
Definition at line 42 of file ImathLine.h.
|
inline |
Initialize with two points. The direction is the difference between the points.
Definition at line 97 of file ImathLine.h.
|
inline |
Return the point on the line closest to the given point.
Definition at line 128 of file ImathLine.h.
|
inline |
Return the point on the line closest to the given line.
Definition at line 143 of file ImathLine.h.
|
inline |
Return the distance to the given point.
Definition at line 121 of file ImathLine.h.
|
inline |
Return the distance to the given line.
Definition at line 135 of file ImathLine.h.
|
inline |
Return the point on the line at the given parameter value, e.g. L(t)
Definition at line 114 of file ImathLine.h.
|
inline |
Set the line defined by two points. The direction is the difference between the points.
Definition at line 105 of file ImathLine.h.
The direction of the line.
Definition at line 34 of file ImathLine.h.
A point on the line.
Definition at line 31 of file ImathLine.h.