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() )
117 const double & thr = 10.0 )
const
119 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:86
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:96
Line2D line() const
get line generated from this ray
Definition ray_2d.h:105
Vector2D intersection(const Line2D &other) const
get the intersection point with 'line'
Definition ray_2d.cpp:45
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:116
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:47
2d vector class Header File.
2D straight line Header File.