2D ray line class
More...
#include <ray_2d.h>
◆ Ray2D() [1/2]
constructor with origin and direction
- Parameters
-
| origin | origin point |
| direction | direction angle |
◆ Ray2D() [2/2]
constructor with origin and other point
- Parameters
-
| origin | origin point |
| dir_point | direction point |
◆ dir()
| const AngleDeg & rcsc::Ray2D::dir |
( |
| ) |
const |
|
inline |
get the angle of this ray line
- Returns
- const referenct to the member variable
◆ inRightDir()
| bool rcsc::Ray2D::inRightDir |
( |
const Vector2D & | point, |
|
|
const double & | thr = 10.0 ) const |
|
inline |
check whether p is on the direction of this Ray
- Parameters
-
| point | considered point |
| thr | threshold angle buffer |
- Returns
- true or false
◆ intersection() [1/2]
get the intersection point with 'line'
- Parameters
-
- Returns
- intersection point. if it does not exist, the invaidated value vector is returned.
◆ intersection() [2/2]
get the intersection point with 'ray'
- Parameters
-
- Returns
- intersection point. if it does not exist, the invaidated value vector is returned.
◆ line()
| Line2D rcsc::Ray2D::line |
( |
| ) |
const |
|
inline |
get line generated from this ray
- Returns
- new line object
◆ origin()
| const Vector2D & rcsc::Ray2D::origin |
( |
| ) |
const |
|
inline |
get origin point
- Returns
- const referenct to the member variable
The documentation for this class was generated from the following files: