Flat 2D circle shape with a center and radius.
More...
#include <GREM/core/geometry.hpp>
|
| using | Component = T |
| | Scalar coordinate component type.
|
|
| template<typename U> |
| GREM_ALWAYS_INLINE constexpr | operator Circle< U > () const noexcept |
| | Convert this circle to an equivalent circle of another scalar type.
|
| constexpr | operator Ellipsoid< 2, T > () const noexcept |
| | Convert this circle to an equivalent 2D ellipsoid.
|
| constexpr | operator Ellipse< T > () const noexcept |
| | Convert this circle to an equivalent 2D ellipse.
|
| constexpr | operator Sphere< 2, T > () const noexcept |
| | Convert this circle to an equivalent 2D sphere.
|
| bool | operator== (const Circle &other) const =default |
| | Compare this circle to another for equality.
|
| constexpr bool | contains (const Point< 2, T > &point) const noexcept |
| | Check if a given point is contained within the extents of this circle.
|
| constexpr Box< 2, T > | getBoundingBox () const noexcept |
| | Get the axis-aligned bounding box of the circle.
|
| constexpr Ellipsoid< 2, T > | toEllipsoid () const noexcept |
| | Convert this shape to an equivalent ellipsoid.
|
| constexpr Sphere< 2, T > | toSphere () const noexcept |
| | Convert this shape to an equivalent sphere.
|
|
| Point< 2, T > | center |
| | Position of the center of the circle.
|
| T | radius |
| | Radius of the circle.
|
|
| static constexpr size_t | RANK = 2 |
| | Number of dimensions of the vector space.
|
template<typename T>
struct grem::Circle< T >
Flat 2D circle shape with a center and radius.
- Template Parameters
-
| T | scalar coordinate component type. |
◆ Component
Scalar coordinate component type.
◆ operator Circle< U >()
template<typename T>
template<typename U>
|
|
inlineexplicitconstexprnoexcept |
Convert this circle to an equivalent circle of another scalar type.
- Returns
- the converted circle.
◆ operator Ellipsoid< 2, T >()
Convert this circle to an equivalent 2D ellipsoid.
- Returns
- the circle as an ellipsoid.
◆ operator Ellipse< T >()
Convert this circle to an equivalent 2D ellipse.
- Returns
- the circle as an ellipse.
◆ operator Sphere< 2, T >()
Convert this circle to an equivalent 2D sphere.
- Returns
- the circle as a sphere.
◆ operator==()
Compare this circle to another for equality.
- Parameters
-
| other | the circle to compare this circle to. |
- Returns
- true if the circles are equal, false otherwise.
◆ contains()
template<typename T>
|
|
inlinenodiscardconstexprnoexcept |
Check if a given point is contained within the extents of this circle.
- Parameters
-
- Returns
- true if the circle contains the given point, false otherwise.
◆ getBoundingBox()
template<typename T>
|
|
inlinenodiscardconstexprnoexcept |
Get the axis-aligned bounding box of the circle.
- Returns
- an axis-aligned box that contains the entire circle.
◆ toEllipsoid()
template<typename T>
|
|
inlinenodiscardconstexprnoexcept |
Convert this shape to an equivalent ellipsoid.
- Returns
- an ellipsoid that is equivalent to this shape.
◆ toSphere()
template<typename T>
|
|
inlinenodiscardconstexprnoexcept |
Convert this shape to an equivalent sphere.
- Returns
- a sphere that is equivalent to this shape.
◆ RANK
Number of dimensions of the vector space.
◆ center
Position of the center of the circle.
◆ radius
The documentation for this struct was generated from the following file: