|
|
constexpr | OBB () noexcept=default |
| | Default constructor.
|
| |
|
constexpr | OBB (OBB const &) noexcept=default |
| | Copy constructor.
|
| |
| template<std::convertible_to< T > U> |
| constexpr | OBB (OBB< 3, U > const &other) noexcept |
| | Converting constructor from an OBB with a different scalar type.
|
| |
| constexpr | OBB (Vec< 3, T > const ¢er, Vec< 3, T > const &half_length) noexcept |
| | Constructs an OBB from center and half-lengths with identity rotation.
|
| |
| constexpr | OBB (Vec< 3, T > const ¢er, Vec< 3, T > const &half_length, Mat< 3, 3, T > const &rotation) noexcept |
| | Constructs an OBB from center, half-lengths, and rotation matrix.
|
| |
| constexpr | OBB (Vec< 3, T > const ¢er, Vec< 3, T > const &half_length, Quat< T > const &rotation) noexcept |
| | Constructs an OBB from center, half-lengths, and quaternion rotation.
|
| |
| constexpr | OBB (Vec< 3, T > const &start, Vec< 3, T > const &end, Vec< 2, T > const &half_length, Vec< 3, T > const &up=Vec< 3, T >(T(0), T(0), T(1))) |
| | Constructs an OBB from a line segment, half-thicknesses, and an up vector.
|
| |
| constexpr AABB< 3, T > | aabb () const noexcept |
| | Returns the AABB of the OBB.
|
| |
| constexpr Vec< 3, T > const & | center () const noexcept |
| | Returns the center of the OBB.
|
| |
| constexpr Vec< 3, T > & | center () noexcept |
| | Returns the center of the OBB.
|
| |
| constexpr T | diagonal () const noexcept |
| | Returns the diagonal length of the OBB.
|
| |
| constexpr bool | isDegenerate () const noexcept |
| | Returns whether the OBB is degenerate.
|
| |
|
bool | operator== (OBB const &) const =default |
| | Equality operator.
|
| |
| constexpr Vec< 3, T > | rotatedHalfLength () const |
| | Returns the rotated half-length vector.
|
| |
| void | setRotation (Quat< T > const &rotation) |
| | Sets the rotation of the OBB from a quaternion.
|
| |
| constexpr T | volume () const noexcept |
| | Returns the volume of the OBB.
|
| |
template<std::floating_point T>
struct ufo::OBB< 3, T >
Definition at line 267 of file obb.hpp.