|
|
constexpr | Plane () noexcept=default |
| | Default constructor.
|
| |
|
constexpr | Plane (Plane const &) noexcept=default |
| | Copy constructor.
|
| |
| template<std::convertible_to< T > U> |
| constexpr | Plane (Plane< Dim, U > const &other) noexcept |
| | Conversion operator to a plane with a different scalar type.
|
| |
| constexpr | Plane (Vec< Dim, T > const &normal) noexcept |
| | Constructs a plane from a normal.
|
| |
| constexpr | Plane (Vec< Dim, T > const &normal, T distance) noexcept |
| | Constructs a plane from a normal and a distance.
|
| |
| constexpr | Plane (Vec< Dim, T > const &v_1, Vec< Dim, T > const &v_2) noexcept |
| | Constructs a plane from two points.
|
| |
| constexpr | Plane (Vec< Dim, T > const &v_1, Vec< Dim, T > const &v_2, Vec< Dim, T > const &v_3) noexcept |
| | Constructs a plane from three points.
|
| |
| constexpr AABB< Dim, T > | aabb () const noexcept |
| | Returns the AABB of the plane.
|
| |
| constexpr T | diameter () const noexcept |
| | Returns the diameter of the plane.
|
| |
| constexpr bool | isDegenerate () const noexcept |
| | Returns whether the plane is degenerate.
|
| |
| bool | operator== (Plane const &) const =default |
| | Equality operator.
|
| |
| constexpr T | volume () const noexcept |
| | Returns the volume of the plane.
|
| |
template<std::size_t Dim = 3, std::floating_point T = float>
struct ufo::Plane< Dim, T >
Plane in space.
- Template Parameters
-
| Dim | The dimensionality of the plane (default: 3). |
| T | The numeric type (default: float), must be a floating-point type. |
Represents a plane defined by a normal and a distance from the origin. The plane is defined by the equation: normal . x = distance
Definition at line 69 of file plane.hpp.