#include <sector_2d.h>
Public メソッド | |
Sector2D (const Vector2D &c, const double &min_r, const double &max_r, const AngleDeg &start, const AngleDeg &end) | |
constructor with all variables | |
const Sector2D & | assign (const Vector2D &c, const double &min_r, const double &max_r, const AngleDeg &start, const AngleDeg &end) |
assign new value | |
const Vector2D & | center () const |
get the center point | |
const double & | radiusMin () const |
get the small side radius | |
const double & | radiusMax () const |
get the big side radius | |
const AngleDeg & | angleLeftStart () const |
get the left start angle | |
const AngleDeg & | angleRightEnd () const |
get the right end angle | |
bool | contains (const Vector2D &point) const |
check if point is within this region | |
double | area () const |
calculate the area of this region | |
double | getCircumferenceMin () const |
get smaller side circumference ENSYUU NO NAGASA | |
double | getCircumferenceMax () const |
rcsc::Sector2D::Sector2D | ( | const Vector2D & | c, | |
const double & | min_r, | |||
const double & | max_r, | |||
const AngleDeg & | start, | |||
const AngleDeg & | end | |||
) |
constructor with all variables
c | center point | |
min_r | smaller radius | |
max_r | bigger radius | |
start | start angle(turn clockwise) | |
end | end angle(turn clockwise) |
const Sector2D & rcsc::Sector2D::assign | ( | const Vector2D & | c, | |
const double & | min_r, | |||
const double & | max_r, | |||
const AngleDeg & | start, | |||
const AngleDeg & | end | |||
) |
assign new value
c | center point | |
min_r | smaller radius | |
max_r | bigger radius | |
start | start angle(turn clockwise) | |
end | end angle(turn clockwise) |
const Vector2D& rcsc::Sector2D::center | ( | ) | const [inline] |
get the center point
const double& rcsc::Sector2D::radiusMin | ( | ) | const [inline] |
get the small side radius
const double& rcsc::Sector2D::radiusMax | ( | ) | const [inline] |
get the big side radius
const AngleDeg& rcsc::Sector2D::angleLeftStart | ( | ) | const [inline] |
get the left start angle
const AngleDeg& rcsc::Sector2D::angleRightEnd | ( | ) | const [inline] |
get the right end angle
bool rcsc::Sector2D::contains | ( | const Vector2D & | point | ) | const [inline] |
check if point is within this region
point | considered point |
double rcsc::Sector2D::area | ( | ) | const |
calculate the area of this region
double rcsc::Sector2D::getCircumferenceMin | ( | ) | const [inline] |
get smaller side circumference ENSYUU NO NAGASA
double rcsc::Sector2D::getCircumferenceMax | ( | ) | const [inline] |
get bigger side circumference ENSYUU NO NAGASA