Simox  2.3.74.0
simox::Circle< FloatT > Class Template Reference

Public Types

template<class T >
using vector2_casted = Eigen::Matrix< T, 2, 1 >
 
using float_t = FloatT
 
using vector2_t = vector2_casted< float_t >
 

Public Member Functions

 Circle (const vector2_t &t, const float_t &r)
 
 Circle ()=default
 
 Circle (Circle &&)=default
 
 Circle (const Circle &)=default
 
Circleoperator= (Circle &&)=default
 
Circleoperator= (const Circle &)=default
 
float_t radius () const
 
template<class T >
radius () const
 
const vector2_ttranslation () const
 
template<class T >
vector2_casted< T > translation () const
 
vector2_t center () const
 
template<class T >
vector2_casted< T > center () const
 
float_t axis (int i) const
 
template<class T >
axis (int i) const
 
float_t axis_x () const
 
template<class T >
axis_x () const
 
auto axis_y () const
 
template<class T >
axis_y () const
 
float_t area () const
 
void scale (float_t factor)
 

Static Public Attributes

static constexpr float_t eps = static_cast<float_t>(1e8)
 
static constexpr float_t pi = static_cast<float_t>(M_PI)
 

Protected Attributes

vector2_t _t {vector2_t::Zero()}
 
float_t _r {0}
 

Member Typedef Documentation

◆ float_t

template<class FloatT >
using simox::Circle< FloatT >::float_t = FloatT

◆ vector2_casted

template<class FloatT >
template<class T >
using simox::Circle< FloatT >::vector2_casted = Eigen::Matrix<T, 2, 1>

◆ vector2_t

template<class FloatT >
using simox::Circle< FloatT >::vector2_t = vector2_casted<float_t>

Constructor & Destructor Documentation

◆ Circle() [1/4]

template<class FloatT >
simox::Circle< FloatT >::Circle ( const vector2_t t,
const float_t r 
)
inline

◆ Circle() [2/4]

template<class FloatT >
simox::Circle< FloatT >::Circle ( )
default

◆ Circle() [3/4]

template<class FloatT >
simox::Circle< FloatT >::Circle ( Circle< FloatT > &&  )
default

◆ Circle() [4/4]

template<class FloatT >
simox::Circle< FloatT >::Circle ( const Circle< FloatT > &  )
default

Member Function Documentation

◆ area()

template<class FloatT >
float_t simox::Circle< FloatT >::area ( ) const
inline

◆ axis() [1/2]

template<class FloatT >
float_t simox::Circle< FloatT >::axis ( int  i) const
inline

◆ axis() [2/2]

template<class FloatT >
template<class T >
T simox::Circle< FloatT >::axis ( int  i) const
inline

◆ axis_x() [1/2]

template<class FloatT >
float_t simox::Circle< FloatT >::axis_x ( ) const
inline

◆ axis_x() [2/2]

template<class FloatT >
template<class T >
T simox::Circle< FloatT >::axis_x ( ) const
inline

◆ axis_y() [1/2]

template<class FloatT >
auto simox::Circle< FloatT >::axis_y ( ) const
inline

◆ axis_y() [2/2]

template<class FloatT >
template<class T >
T simox::Circle< FloatT >::axis_y ( ) const
inline

◆ center() [1/2]

template<class FloatT >
vector2_t simox::Circle< FloatT >::center ( ) const
inline

◆ center() [2/2]

template<class FloatT >
template<class T >
vector2_casted<T> simox::Circle< FloatT >::center ( ) const
inline

◆ operator=() [1/2]

template<class FloatT >
Circle& simox::Circle< FloatT >::operator= ( Circle< FloatT > &&  )
default

◆ operator=() [2/2]

template<class FloatT >
Circle& simox::Circle< FloatT >::operator= ( const Circle< FloatT > &  )
default

◆ radius() [1/2]

template<class FloatT >
float_t simox::Circle< FloatT >::radius ( ) const
inline

◆ radius() [2/2]

template<class FloatT >
template<class T >
T simox::Circle< FloatT >::radius ( ) const
inline

◆ scale()

template<class FloatT >
void simox::Circle< FloatT >::scale ( float_t  factor)
inline

◆ translation() [1/2]

template<class FloatT >
const vector2_t& simox::Circle< FloatT >::translation ( ) const
inline

◆ translation() [2/2]

template<class FloatT >
template<class T >
vector2_casted<T> simox::Circle< FloatT >::translation ( ) const
inline

Field Documentation

◆ _r

template<class FloatT >
float_t simox::Circle< FloatT >::_r {0}
protected

◆ _t

template<class FloatT >
vector2_t simox::Circle< FloatT >::_t {vector2_t::Zero()}
protected

◆ eps

template<class FloatT >
constexpr float_t simox::Circle< FloatT >::eps = static_cast<float_t>(1e8)
static

◆ pi

template<class FloatT >
constexpr float_t simox::Circle< FloatT >::pi = static_cast<float_t>(M_PI)
static