クラス rcsc::Ray2D

2D ray line class [詳細]

#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 Vector2Dorigin () const
 get origin point
const AngleDegdir () 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'


説明

2D ray line class


コンストラクタとデストラクタ

rcsc::Ray2D::Ray2D ( const Vector2D origin,
const AngleDeg direction 
) [inline]

constructor with origin and direction

引数:
origin origin point
direction direction angle

rcsc::Ray2D::Ray2D ( const Vector2D origin,
const Vector2D dir_point 
) [inline]

constructor with origin and other point

引数:
origin origin point
dir_point direction point


関数

const Vector2D& rcsc::Ray2D::origin (  )  const [inline]

get origin point

戻り値:
const referenct to the member variable

const AngleDeg& rcsc::Ray2D::dir (  )  const [inline]

get the angle of this ray line

戻り値:
const referenct to the member variable

Line2D rcsc::Ray2D::line (  )  const [inline]

get line generated from this ray

戻り値:
new line object

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
戻り値:
true or false

Vector2D rcsc::Ray2D::intersection ( const Line2D other  )  const

get the intersection point with 'line'

引数:
other considered line
戻り値:
intersection point. if it does not exist, the invaidated value vector is returned.

Vector2D rcsc::Ray2D::intersection ( const Ray2D other  )  const

get the intersection point with 'ray'

引数:
other considered ray
戻り値:
intersection point. if it does not exist, the invaidated value vector is returned.


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:26 2008に生成されました。  doxygen 1.5.0