#include <ray_2d.h>
Public メソッド | |
Ray2D () | |
defalut constructor. all values are set to 0. | |
Ray2D (const Vector2D &origin, const AngleDeg &direction) | |
constructor with origin and direction | |
Ray2D (const Vector2D &origin, const Vector2D &dir_point) | |
constructor with origin and other point | |
const Vector2D & | origin () const |
get origin point | |
const AngleDeg & | dir () const |
get the angle of this ray line | |
Line2D | line () const |
get line generated from this ray | |
bool | inRightDir (const Vector2D &point, const double &thr=10.0) const |
check whether p is on the direction of this Ray | |
Vector2D | intersection (const Line2D &other) const |
get the intersection point with 'line' | |
Vector2D | intersection (const Ray2D &other) const |
get the intersection point with 'ray' |
constructor with origin and direction
origin | origin point | |
direction | direction angle |
constructor with origin and other point
origin | origin point | |
dir_point | direction point |
const Vector2D& rcsc::Ray2D::origin | ( | ) | const [inline] |
get origin point
const AngleDeg& rcsc::Ray2D::dir | ( | ) | const [inline] |
get the angle of this ray line
Line2D rcsc::Ray2D::line | ( | ) | const [inline] |
get line generated from this ray
bool rcsc::Ray2D::inRightDir | ( | const Vector2D & | point, | |
const double & | thr = 10.0 | |||
) | const [inline] |
check whether p is on the direction of this Ray
point | considered point | |
thr | threshold angle buffer |
get the intersection point with 'line'
other | considered line |
get the intersection point with 'ray'
other | considered ray |