32#ifndef RCSC_GEOM_RAY2D_H
33#define RCSC_GEOM_RAY2D_H
56 : M_origin( 0.0, 0.0 ),
68 M_direction( direction )
78 M_direction( ( dir_point -
origin ).th() )
115 const double thr = 10.0 )
const
117 return ( ( point -
origin() ).th() -
dir() ).abs() < thr;
degree wrapper class
Definition: angle_deg.h:45
2d straight line class
Definition: line_2d.h:47
2D ray line class
Definition: ray_2d.h:44
const Vector2D & origin() const
get origin point
Definition: ray_2d.h:85
Vector2D intersection(const Ray2D &other) const
get the intersection point with 'ray'
Ray2D(const Vector2D &origin, const Vector2D &dir_point)
constructor with origin and other point
Definition: ray_2d.h:75
const AngleDeg & dir() const
get the angle of this ray line
Definition: ray_2d.h:94
Line2D line() const
get line generated from this ray
Definition: ray_2d.h:103
Vector2D intersection(const Line2D &other) const
get the intersection point with 'line'
Ray2D()
defalut constructor. all values are set to 0.
Definition: ray_2d.h:55
bool inRightDir(const Vector2D &point, const double thr=10.0) const
check whether p is on the direction of this Ray
Definition: ray_2d.h:114
Ray2D(const Vector2D &origin, const AngleDeg &direction)
constructor with origin and direction
Definition: ray_2d.h:65
2D point vector class
Definition: vector_2d.h:46
2D straight line Header File.
2d vector class Header File.