#include <circle_2d.h>
Public メソッド | |
Circle2D () | |
create a zero area circle at (0,0) | |
Circle2D (const Vector2D &c, const double &r) | |
constructor with all values | |
const Circle2D & | assign (const Vector2D &c, const double &r) |
assign new value. | |
bool | contains (const Vector2D &point) const |
check if point is within this region | |
const Vector2D & | center () const |
get the center point | |
const double & | radius () const |
get the radius value | |
int | intersection (const Line2D &line, Vector2D *sol1, Vector2D *sol2) const |
caluclate the intersection with straight line | |
int | intersection (const Ray2D &ray, Vector2D *sol1, Vector2D *sol2) const |
calculate the intersection with ray line | |
int | intersection (const Circle2D &circle, Vector2D *sol1, Vector2D *sol2) const |
calculate the intersection with another circle | |
Static Public メソッド | |
static Circle2D | circumcircle (const Vector2D &a, const Vector2D &b, const Vector2D &c) |
get the circumcircle from triangle vertexs |
rcsc::Circle2D::Circle2D | ( | const Vector2D & | c, | |
const double & | r | |||
) | [inline] |
constructor with all values
c | center point | |
r | radius value |
assign new value.
c | center point | |
r | radius value |
bool rcsc::Circle2D::contains | ( | const Vector2D & | point | ) | const [inline] |
check if point is within this region
point | considered point |
const Vector2D& rcsc::Circle2D::center | ( | ) | const [inline] |
get the center point
const double& rcsc::Circle2D::radius | ( | ) | const [inline] |
get the radius value
caluclate the intersection with straight line
line | considerd line | |
sol1 | pointer to the 1st solution variable | |
sol2 | pointer to the 2nd solution variable |
calculate the intersection with ray line
ray | considerd ray | |
sol1 | pointer to the 1st solution variable | |
sol2 | pointer to the 2nd solution variable |
int rcsc::Circle2D::intersection | ( | const Circle2D & | circle, | |
Vector2D * | sol1, | |||
Vector2D * | sol2 | |||
) | const |
calculate the intersection with another circle
circle | considerd circle | |
sol1 | pointer to the 1st solution variable | |
sol2 | pointer to the 2nd solution variable |
Circle2D rcsc::Circle2D::circumcircle | ( | const Vector2D & | a, | |
const Vector2D & | b, | |||
const Vector2D & | c | |||
) | [static] |
get the circumcircle from triangle vertexs
a | triangle's 1st vertex | |
b | triangle's 2nd vertex | |
c | triangle's 3rd vertex |