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