0.44.0
|
#include <iaCircle.h>
Public Member Functions | |
iaCircle ()=default | |
iaCircle (T x, T y, T radius=1.0) | |
iaCircle (const iaVector2< T > ¢er, 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 > ¢er) |
void | set (T x, T y, T radius) |
void | set (const iaVector2< T > ¢er, T radius) |
iaCircle< T > | operator= (const iaCircle< T > &circle) |
Public Attributes | |
iaVector2< T > | _center |
T | _radius = static_cast<T>(1.0) |
2d circle
|
default |
does nothing
|
inline |
ctor with parameters
x | horizontal center position |
y | vertical center position |
radius | radius |
|
inline |
ctor with parameters
center | center position |
radius | radius |
|
inline |
copy ctor
circle | the circle to copy |
const iaVector2< T > & iaCircle::getCenter | ( | ) | const |
const T iaCircle::getRadius | ( | ) | const |
const T iaCircle::getX | ( | ) | const |
const T iaCircle::getY | ( | ) | const |
assignment operator
circle | the circle to assign |
void iaCircle::set | ( | const iaVector2< T > & | center, |
T | radius | ||
) |
set with parameters
center | center position |
radius | radius |
void iaCircle::set | ( | T | x, |
T | y, | ||
T | radius | ||
) |
set with parameters
x | horizontal center position |
y | vertical center position |
radius | radius |
void iaCircle::setCenter | ( | const iaVector2< T > & | center | ) |
sets center of circle
center | the new center of the circle |
void iaCircle::setRadius | ( | T | radius | ) |
sets radius of circle
radius | radius of circle |
void iaCircle::setX | ( | T | x | ) |
sets horizontal position
x | horizontal position |
void iaCircle::setY | ( | T | y | ) |
sets vertical position
y | vertical position |
iaVector2<T> iaux::iaCircle< T >::_center |
center position
T iaux::iaCircle< T >::_radius = static_cast<T>(1.0) |
radius of circle