|
|
constexpr | Ray () noexcept=default |
| | Default constructor.
|
| |
|
constexpr | Ray (Ray const &) noexcept=default |
| | Copy constructor.
|
| |
| template<std::convertible_to< T > U> |
| constexpr | Ray (Ray< Dim, U > const &other) noexcept |
| | Converting constructor from a ray with a different scalar type.
|
| |
| constexpr | Ray (Vec< Dim, T > origin, Vec< Dim, T > direction) noexcept |
| | Constructs a ray from an origin point and a direction vector.
|
| |
| constexpr AABB< Dim, T > | aabb () const noexcept |
| | Returns the AABB of the ray.
|
| |
| constexpr Vec< Dim, T > | at (T t) const |
| | Returns the point at distance t along the ray.
|
| |
| constexpr T | diameter () const noexcept |
| | Returns the diameter of the ray.
|
| |
| constexpr bool | isDegenerate () const noexcept |
| | Returns whether the ray is degenerate.
|
| |
|
bool | operator== (Ray const &) const =default |
| | Equality operator.
|
| |
| constexpr T | volume () const noexcept |
| | Returns the volume of the ray.
|
| |
template<std::size_t Dim = 3, std::floating_point T = float>
struct ufo::Ray< Dim, T >
Ray in Dim-dimensional space.
- Template Parameters
-
| Dim | The dimensionality of the space (default: 3). |
| T | The numeric type (default: float), must be a floating-point type. |
Represents a ray defined by an origin point and a direction vector.
Definition at line 66 of file ray.hpp.