template<class T>
Circle class
Public functions
- auto operator()(const Point2D<T>& p) const -> T constexpr
-
auto operator()(const Math::
Rad& angle) const -> Point2D<T> constexpr - auto radius() const -> T constexpr
- auto center() const -> Point2D<T> constexpr
- auto setCenter(const Point2D<T>& center) -> Circle& constexpr
- auto setRadius(T radius) -> Circle& constexpr
Function documentation
template<class T>
T Rodin:: Geometry:: Euclidean:: Circle<T>:: operator()(const Point2D<T>& p) const constexpr
This function evaluates the point
template<class T>
Point2D<T> Rodin:: Geometry:: Euclidean:: Circle<T>:: operator()(const Math:: Rad& angle) const constexpr
Parameters | |
---|---|
angle in | Angle in the range , which the ray from to makes with the positive x-axis. |
Returns | The point on the circle. |
This function evaluates the angle using the parametric form of the circle:
template<class T>
T Rodin:: Geometry:: Euclidean:: Circle<T>:: radius() const constexpr
Returns | The radius of the circle. |
---|