|
|
constexpr | Line () noexcept=default |
| | Default constructor.
|
| |
|
constexpr | Line (Line const &) noexcept=default |
| | Copy constructor.
|
| |
| template<std::convertible_to< T > U> |
| constexpr | Line (Line< Dim, U > const &other) noexcept |
| | Converting constructor from a line with a different scalar type.
|
| |
| constexpr | Line (Vec< Dim, T > const &origin, Vec< Dim, T > const &direction) noexcept |
| | Constructs a line from an origin and a direction.
|
| |
| constexpr AABB< Dim, T > | aabb () const noexcept |
| | Returns the AABB of the line.
|
| |
| constexpr Vec< Dim, T > | at (T t) const noexcept |
| | Returns the point at distance t along the line.
|
| |
| constexpr Vec< Dim, T > | center () const noexcept |
| | Returns the center of the line.
|
| |
| constexpr T | diameter () const noexcept |
| | Returns the diameter of the line.
|
| |
| constexpr bool | isDegenerate () const noexcept |
| | Returns whether the line is degenerate.
|
| |
|
constexpr Line & | operator= (Line const &) noexcept=default |
| | Copy assignment operator.
|
| |
| constexpr T | volume () const noexcept |
| | Returns the volume of the line.
|
| |
template<std::size_t Dim = 3, std::floating_point T = float>
struct ufo::Line< Dim, T >
Definition at line 59 of file line.hpp.