iaux::iaCircle< T > Class Template Reference

#include <iaCircle.h>

Public Member Functions

 iaCircle ()=default
 
 iaCircle (T x, T y, T radius=1.0)
 
 iaCircle (const iaVector2< T > &center, T radius=static_cast< T >(1.0))
 
 iaCircle (const iaCircle< T > &circle)
 
const T getX () const
 
const T getY () const
 
const T getRadius () const
 
const iaVector2< T > & getCenter () const
 
void setX (T x)
 
void setY (T y)
 
void setRadius (T radius)
 
void setCenter (const iaVector2< T > &center)
 
void set (T x, T y, T radius)
 
void set (const iaVector2< T > &center, T radius)
 
iaCircle< T > operator= (const iaCircle< T > &circle)
 

Public Attributes

iaVector2< T > _center
 
_radius = static_cast<T>(1.0)
 

Detailed Description

template<class T>
class iaux::iaCircle< T >

2d circle

Constructor & Destructor Documentation

◆ iaCircle() [1/4]

template<class T >
iaux::iaCircle< T >::iaCircle ( )
default

does nothing

◆ iaCircle() [2/4]

template<class T >
iaux::iaCircle< T >::iaCircle ( x,
y,
radius = 1.0 
)
inline

ctor with parameters

Parameters
xhorizontal center position
yvertical center position
radiusradius

◆ iaCircle() [3/4]

template<class T >
iaux::iaCircle< T >::iaCircle ( const iaVector2< T > &  center,
radius = static_cast<T>(1.0) 
)
inline

ctor with parameters

Parameters
centercenter position
radiusradius

◆ iaCircle() [4/4]

template<class T >
iaux::iaCircle< T >::iaCircle ( const iaCircle< T > &  circle)
inline

copy ctor

Parameters
circlethe circle to copy

Member Function Documentation

◆ getCenter()

template<class T >
const iaVector2< T > & iaCircle::getCenter ( ) const
Returns
center of circle

◆ getRadius()

template<class T >
const T iaCircle::getRadius ( ) const
Returns
rectangle width

◆ getX()

template<class T >
const T iaCircle::getX ( ) const
Returns
horizontal position

◆ getY()

template<class T >
const T iaCircle::getY ( ) const
Returns
vertical position

◆ operator=()

template<class T >
iaCircle< T > iaCircle::operator= ( const iaCircle< T > &  circle)

assignment operator

Parameters
circlethe circle to assign
Returns
resulting circle

◆ set() [1/2]

template<class T >
void iaCircle::set ( const iaVector2< T > &  center,
radius 
)

set with parameters

Parameters
centercenter position
radiusradius

◆ set() [2/2]

template<class T >
void iaCircle::set ( x,
y,
radius 
)

set with parameters

Parameters
xhorizontal center position
yvertical center position
radiusradius

◆ setCenter()

template<class T >
void iaCircle::setCenter ( const iaVector2< T > &  center)

sets center of circle

Parameters
centerthe new center of the circle

◆ setRadius()

template<class T >
void iaCircle::setRadius ( radius)

sets radius of circle

Parameters
radiusradius of circle

◆ setX()

template<class T >
void iaCircle::setX ( x)

sets horizontal position

Parameters
xhorizontal position

◆ setY()

template<class T >
void iaCircle::setY ( y)

sets vertical position

Parameters
yvertical position

Member Data Documentation

◆ _center

template<class T >
iaVector2<T> iaux::iaCircle< T >::_center

center position

◆ _radius

template<class T >
T iaux::iaCircle< T >::_radius = static_cast<T>(1.0)

radius of circle


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