28 #include "Portability.h" 30 #include "VectorOps.h" 33 #ifndef DOXYGEN_SHOULD_SKIP_THIS 91 return this->center - gf::diry(this->radius);
100 return this->center + gf::diry(this->radius);
109 return this->center - gf::dirx(this->radius);
118 return this->center + gf::dirx(this->radius);
208 template<
typename Archive,
typename T>
213 #ifndef DOXYGEN_SHOULD_SKIP_THIS Archive & operator|(Archive &ar, Circ< T > &circ)
Serialize a circle.
Definition: Circ.h:209
constexpr Vector< T, 2 > getBottom() const noexcept
Get the bottom of the circle.
Definition: Circ.h:99
constexpr Vector< T, 2 > getLeft() const noexcept
Get the left of the circle.
Definition: Circ.h:108
constexpr Vector< T, 2 > getTop() const noexcept
Get the top of the circle.
Definition: Circ.h:90
constexpr Circ() noexcept
Default constructor.
Definition: Circ.h:69
bool operator==(const Circ< T > &lhs, const Circ< T > &rhs)
Equality operator.
Definition: Circ.h:182
A n-dimension ball.
Definition: Ball.h:46
Utility class for manipulating circles.
Definition: Circ.h:62
constexpr Vector< T, 2 > getRight() const noexcept
Get the right of the circle.
Definition: Circ.h:117
bool operator!=(const Circ< T > &lhs, const Circ< T > &rhs)
Inequality operator.
Definition: Circ.h:196
The namespace for gf classes.
Definition: Action.h:35
T radius
Radius of the ball.
Definition: Ball.h:48
A 2D vector.
Definition: Vector.h:316
constexpr Circ(const Vector< T, 2 > &circCenter, T circRadius) noexcept
Construct the circle from center and radius.
Definition: Circ.h:80
Vector< T, N > center
Center of the ball.
Definition: Ball.h:47