|
| template<class Dim2 > |
| constexpr | CircleType (const CircleType< Dim2 > &c) |
| |
| constexpr | CircleType (const PointType< Dim > ¢er={}, Dim radius={}) noexcept |
| | Construct a Circle object.
|
| |
| 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.
|
| |
| EGT_NODISCARD constexpr RectType< Dim > | rect () const noexcept |
| | Get a Rect that covers the circle.
|
| |
| template<class Dim2 > |
| constexpr | ArcType (const ArcType< Dim2 > &a) |
| |
| constexpr | ArcType (const PointType< Dim > ¢er={}, Dim radius={}, float angle1=0.0f, float angle2=0.0f) noexcept |
| | Construct an Arc object.
|
| |
| EGT_NODISCARD constexpr float | angle1 () const noexcept |
| | Get the angle1.
|
| |
| constexpr void | angle1 (float angle) noexcept |
| | Set the angle1.
|
| |
| EGT_NODISCARD constexpr float | angle2 () const noexcept |
| | Get the angle2.
|
| |
| constexpr void | angle2 (float angle) noexcept |
| | Set the angle2.
|
| |
| EGT_NODISCARD constexpr PointType< Dim > | center () const noexcept |
| | Get the center point.
|
| |
| constexpr void | center (const PointType< Dim > ¢er) noexcept |
| | Set the center point.
|
| |
| EGT_NODISCARD EGT_API bool | empty () const noexcept |
| | Returns true if the arc has no radius.
|
| |
| EGT_NODISCARD constexpr Dim | radius () const noexcept |
| | Get the radius.
|
| |
| constexpr void | radius (Dim radius) noexcept |
| | Set the radius.
|
| |
template<class Dim>
class egt::v1::CircleType< Dim >
A basic circle with a center point and radius.
Typically Circle, CircleF are used as aliases.