API Documentation
Loading...
Searching...
No Matches
BiRadialObject< t_dims, t_type, t_vertex > Class Template Reference

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)
 

Detailed Description

template<uint01 t_dims, class t_type, class t_vertex = Vertex<t_dims, t_type>>
class NDEVR::BiRadialObject< t_dims, t_type, t_vertex >

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).


Constructor & Destructor Documentation

◆ BiRadialObject() [1/2]

template<uint01 t_dims, class t_type , class t_vertex = Vertex<t_dims, t_type>>
BiRadialObject ( t_type r = 0)
inlineconstexpr

◆ BiRadialObject() [2/2]

template<uint01 t_dims, class t_type , class t_vertex = Vertex<t_dims, t_type>>
BiRadialObject ( const t_vertex & p1,
const t_vertex & p2,
t_type radius )
inlineconstexpr

Member Function Documentation

◆ as()

template<uint01 t_dims, class t_type , class t_vertex = Vertex<t_dims, t_type>>
template<uint01 t_new_dims, class t_new_type >
BiRadialObject< t_new_dims, t_new_type > as ( ) const
inlineconstexpr

Gets as.

Author: Tyler Parke

Date: 2017-11-19

Returns
A RadialObject<t_new_dims,t_new_type>

◆ axisPoint()

template<uint01 t_dims, class t_type , class t_vertex = Vertex<t_dims, t_type>>
const t_vertex & axisPoint ( uint01 vertex) const
inlineconstexpr

◆ center()

template<uint01 t_dims, class t_type , class t_vertex = Vertex<t_dims, t_type>>
t_vertex center ( ) const
inlineconstexpr

Gets the center.

Author: Tyler Parke

Date: 2017-11-19

Returns
The centerpoint of the Biradial object (Or the intersection of the major and minor axis);

◆ contains()

template<uint01 t_dims, class t_type , class t_vertex = Vertex<t_dims, t_type>>
bool contains ( const t_vertex & vector) const
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.

Returns
True if the object is in this collection, false if not.

◆ fromCircleTransform() [1/2]

template<uint01 t_dims, class t_type , class t_vertex = Vertex<t_dims, t_type>>
template<class t_matrix_type = fltp08>
Matrix< t_matrix_type > fromCircleTransform ( ) const
inline

◆ fromCircleTransform() [2/2]

template<uint01 t_dims, class t_type , class t_vertex = Vertex<t_dims, t_type>>
template<class t_matrix_type = fltp08>
static BiRadialObject< t_dims, t_type, t_vertex > fromCircleTransform ( const Matrix< t_matrix_type > & mat)
inlinestatic

◆ minorToMajorRatio()

template<uint01 t_dims, class t_type , class t_vertex = Vertex<t_dims, t_type>>
template<class t_ratio_type = fltp08>
t_ratio_type minorToMajorRatio ( ) const
inline

◆ radius()

template<uint01 t_dims, class t_type , class t_vertex = Vertex<t_dims, t_type>>
t_type radius ( ) const
inlineconstexpr

Gets the radius.

Author: Tyler Parke

Date: 2017-11-19

Returns
A t_type.

The documentation for this class was generated from the following file: