Flat 2D circle shape with a center and radius.
More...
#include <donut/shapes.hpp>
|
constexpr | operator Sphere< 2, T > () const noexcept |
| Convert this circle to an equivalent 2D sphere. More...
|
|
constexpr bool | contains (const Point< 2, T > &point) const noexcept |
| Check if a given point is contained within the extents of this circle. More...
|
|
template<typename T>
struct donut::Circle< T >
Flat 2D circle shape with a center and radius.
- Template Parameters
-
T | component type for vector coordinates. |
◆ operator Sphere< 2, T >()
Convert this circle to an equivalent 2D sphere.
- Returns
- the circle as a sphere.
◆ contains()
Check if a given point is contained within the extents of this circle.
- Returns
- true if the circle contains the given point, false otherwise.
◆ center
Position of the center of the circle.
◆ radius
The documentation for this struct was generated from the following files: