Basic template for lines in N-dimensional space. More...
#include <eagine/math/primitives.hpp>
Public Member Functions | |
constexpr | basic_line () noexcept=default |
Default constructor. | |
constexpr | basic_line (tvec< T, N, V > orig, tvec< T, N, V > dir) noexcept |
Construction from origin point and direction vector. | |
constexpr auto | origin () const noexcept -> vector< T, N, V > |
Returns the line origin. | |
constexpr auto | direction () const noexcept -> vector< T, N, V > |
Returns the line direction. | |
constexpr auto | point_at (T t) const noexcept -> vector< T, N, V > |
Returns a point on the line at the specified parameter t . | |
Basic template for lines in N-dimensional space.