|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Generic ellipsoid shape with a center and axis-aligned radii in N-dimensional space. More...
#include <GREM/core/geometry.hpp>
Public Types | |
| using | Component = T |
| Scalar coordinate component type. | |
Public Member Functions | |
| template<typename U> | |
| GREM_ALWAYS_INLINE constexpr | operator Ellipsoid< N, U > () const noexcept |
| Convert this ellipsoid to an equivalent ellipsoid of another scalar type. | |
| bool | operator== (const Ellipsoid &other) const =default |
| Compare this ellipsoid to another for equality. | |
| constexpr bool | contains (const Point< N, T > &point) const noexcept |
| Check if a given point is contained within the extents of this ellipsoid. | |
| constexpr bool | intersects (const Ray< N, T > &ray) const noexcept |
| Check if this ellipsoid intersects a given ray. | |
| constexpr RaycastResult< N, T > | raycast (const Ray< N, T > &ray) const noexcept |
| Find the closest intersection of this ellipsoid with a given ray. | |
| constexpr Box< N, T > | getBoundingBox () const noexcept |
| Get the axis-aligned bounding box of the sphere. | |
| constexpr Ellipsoid< N, T > | toEllipsoid () const noexcept |
| Convert this shape to an equivalent ellipsoid. | |
Public Attributes | |
| Point< N, T > | center |
| Position of the center of the ellipsoid. | |
| Length< N, T > | radii |
| Radii of the ellipsoid along each axis. | |
Static Public Attributes | |
| static constexpr size_t | RANK = N |
| Number of dimensions of the vector space. | |
Generic ellipsoid shape with a center and axis-aligned radii in N-dimensional space.
| N | number of vector dimensions. |
| T | scalar coordinate component type. |
| using grem::Ellipsoid< N, T >::Component = T |
Scalar coordinate component type.
|
inlineexplicitconstexprnoexcept |
Convert this ellipsoid to an equivalent ellipsoid of another scalar type.
|
nodiscarddefault |
Compare this ellipsoid to another for equality.
| other | the ellipsoid to compare this ellipsoid to. |
|
inlinenodiscardconstexprnoexcept |
Check if a given point is contained within the extents of this ellipsoid.
| point | point to check. |
|
inlinenodiscardconstexprnoexcept |
Check if this ellipsoid intersects a given ray.
| ray | ray to check. |
|
inlinenodiscardconstexprnoexcept |
Find the closest intersection of this ellipsoid with a given ray.
| ray | ray to check. |
|
inlinenodiscardconstexprnoexcept |
Get the axis-aligned bounding box of the sphere.
|
inlinenodiscardconstexprnoexcept |
Convert this shape to an equivalent ellipsoid.
|
staticconstexpr |
Number of dimensions of the vector space.
| Point<N, T> grem::Ellipsoid< N, T >::center |
Position of the center of the ellipsoid.
| Length<N, T> grem::Ellipsoid< N, T >::radii |
Radii of the ellipsoid along each axis.