1.8 |
A basic circle with a center point and radius. More...
Public Types | |
using | DimType = Dim |
Helper to reference the dimension type. More... | |
Public Types inherited from ArcType< Dim > | |
using | DimType = Dim |
Helper to reference the dimension type. More... | |
Public Member Functions | |
constexpr | CircleType (const PointType< Dim > ¢er={}, Dim radius={}) noexcept |
Construct a Circle object. More... | |
template<class T > | |
PointType< Dim > | point_on_circumference (T angle) const noexcept |
Return the point on the circumference of the circle at the given angle. More... | |
constexpr EGT_NODISCARD RectType< Dim > | rect () const noexcept |
Get a Rect that covers the circle. More... | |
Public Member Functions inherited from ArcType< Dim > | |
constexpr | ArcType (const PointType< Dim > ¢er={}, Dim radius={}, float angle1=0.0f, float angle2=0.0f) noexcept |
Construct an Arc object. More... | |
constexpr EGT_NODISCARD float | angle1 () const noexcept |
Get the angle1. More... | |
constexpr void | angle1 (float angle) noexcept |
Set the angle1. More... | |
constexpr EGT_NODISCARD float | angle2 () const noexcept |
Get the angle2. More... | |
constexpr void | angle2 (float angle) noexcept |
Set the angle2. More... | |
constexpr EGT_NODISCARD PointType< Dim > | center () const noexcept |
Get the center point. More... | |
constexpr void | center (const PointType< Dim > ¢er) noexcept |
Set the center point. More... | |
EGT_NODISCARD EGT_API bool | empty () const noexcept |
Returns true if the arc has no radius. More... | |
constexpr EGT_NODISCARD Dim | radius () const noexcept |
Get the radius. More... | |
constexpr void | radius (Dim radius) noexcept |
Set the radius. More... | |
Additional Inherited Members | |
Protected Attributes inherited from ArcType< Dim > | |
float | m_angle1 {} |
Angle of the arc in radians. More... | |
float | m_angle2 {} |
Angle of the arc in radians. More... | |
PointType< Dim > | m_center |
Center point of the arc. More... | |
Dim | m_radius {0} |
Radius of the arc. More... | |
A basic circle with a center point and radius.
using DimType = Dim |
Helper to reference the dimension type.
|
inlineexplicitconstexprnoexcept |
Construct a Circle object.
center | Center point of the arc. |
radius | Radius of the arc. |
|
inlinenoexcept |
Return the point on the circumference of the circle at the given angle.
angle | The angle in radians. |
|
inlineconstexprnoexcept |
Get a Rect that covers the circle.