API Documentation
|
An ellipse like shape (such as an oval or egg) with two points, where all points on the shape are equal distance between the two points (distanceTo(A) + distanceTo(B) = radius). More...
#include <RadialObject.hpp>
Public Member Functions | |
template<uint01 t_new_dims, class t_new_type > | |
constexpr BiRadialObject< t_new_dims, t_new_type > | as () const |
constexpr const t_vertex & | axisPoint (uint01 vertex) const |
constexpr | BiRadialObject (const t_vertex &p1, const t_vertex &p2, t_type radius) |
constexpr | BiRadialObject (t_type r=0) |
constexpr t_vertex | center () const |
constexpr bool | contains (const t_vertex &vector) const |
template<class t_matrix_type = fltp08> | |
Matrix< t_matrix_type > | fromCircleTransform () const |
template<class t_ratio_type = fltp08> | |
t_ratio_type | minorToMajorRatio () const |
constexpr t_type | radius () const |
Static Public Member Functions | |
template<class t_matrix_type = fltp08> | |
static BiRadialObject< t_dims, t_type, t_vertex > | fromCircleTransform (const Matrix< t_matrix_type > &mat) |
An ellipse like shape (such as an oval or egg) with two points, where all points on the shape are equal distance between the two points (distanceTo(A) + distanceTo(B) = radius).
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Gets the center.
Author: Tyler Parke
Date: 2017-11-19
|
inlineconstexpr |
Query if this object contains the given vector.
Author: Tyler Parke
Date: 2017-11-19
Parameters: vector - The const Vector<t_dims,t_type>& to test for containment.
|
inline |
|
inlinestatic |
|
inline |
|
inlineconstexpr |
Gets the radius.
Author: Tyler Parke
Date: 2017-11-19