Atoms Crowd
7.0.0
|
#include <ImathLine.h>
Public Member Functions | |
constexpr ATOMSMATH_HOSTDEVICE Vec2< T > | operator() (T parameter) const noexcept |
constexpr ATOMSMATH_HOSTDEVICE Vec2< T > | closestPointTo (const Vec2< T > &point) const noexcept |
Return the point on the line closest to the given point. | |
Constructors | |
constexpr ATOMSMATH_HOSTDEVICE | Line2 () noexcept |
Uninitialized by default. | |
ATOMSMATH_HOSTDEVICE ATOMSMATH_CONSTEXPR14 | Line2 (const Vec2< T > &point1, const Vec2< T > &point2) noexcept |
Manipulation | |
ATOMSMATH_HOSTDEVICE void | set (const Vec2< T > &point1, const Vec2< T > &point2) noexcept |
Public Attributes | |
Direct access to member fields | |
Vec2< T > | pos |
A point on the line. | |
Vec2< T > | dir |
The direction of the line. | |
The Line3
class represents a 3D line, defined by a point and a direction vector.
|
inlinenoexcept |
Initialize with two points. The direction is the difference between the points.
|
inlineconstexprnoexcept |
Return the point on the line at the given parameter value, e.g. L(t)
|
inlinenoexcept |
Set the line defined by two points. The direction is the difference between the points.