VXV::Direction Class Reference

向き More...

#include <typeUtils.h>

List of all members.

Public Member Functions

double getInnerRadian (void) const
 内部管理の radian 値を返す
 Direction (const Direction *rhs)
 コピーコンストラクタ
const Directionoperator+= (const Direction &rhs)
 演算子定義
const Direction operator+ (const Direction &rhs) const
 演算子定義
bool operator== (const Direction &rhs) const
 演算子定義
const Directionoperator-= (const Direction &rhs)
 演算子定義
Direction operator- (const Direction &rhs) const
 演算子定義
const int to_deg (void) const
 degree単位の値を返す
const double to_rad (void) const
 radian単位の値を返す

Static Public Member Functions

static Direction deg (int degree)
 degree値の角度を格納
static Direction rad (double radian)
 radian値の角度を格納


Detailed Description

向き

Definition at line 161 of file typeUtils.h.


Member Function Documentation

double VXV::Direction::getInnerRadian ( void   )  const [inline]

内部管理の radian 値を返す

Return values:
内部管理の radian 値

Definition at line 173 of file typeUtils.h.

Referenced by RunCtrl::rotateAngle().

static Direction VXV::Direction::deg ( int  degree  )  [inline, static]

degree値の角度を格納

Parameters:
degree [i] 角度値 [degree]
Return values:
Directionオブジェクト 

Definition at line 228 of file typeUtils.h.

static Direction VXV::Direction::rad ( double  radian  )  [inline, static]

radian値の角度を格納

Parameters:
radian [i] 角度値 [radian]
Return values:
Directionオブジェクト 

Definition at line 238 of file typeUtils.h.

Referenced by tRunCtrl_Simulator::getBodyPosition(), RunCtrl::getLocalPosition(), and RunCtrl::getRotateVel().

const int VXV::Direction::to_deg ( void   )  const

degree単位の値を返す

返される値は、[+180, -180) となる

Return values:
角度値 [degree]

Definition at line 63 of file typeUtils.cpp.

References to_rad().

Referenced by mRunCtrl::followLine(), operator<<(), mRunCtrl::rotateAngle(), mRunCtrl::rotateToDirection(), mRunCtrl::spin(), and mRunCtrl::stopToLine().

const double VXV::Direction::to_rad ( void   )  const

radian単位の値を返す

返される値は、[+M_PI, -M_PI) となる

Return values:
角度値 [radian]

Definition at line 68 of file typeUtils.cpp.

Referenced by VXV::createConvertMatrix(), VXV::getNextLinePoint(), operator<<(), operator==(), to_deg(), and RunCtrl::to_div16().


The documentation for this class was generated from the following files:

Generated on Mon Apr 13 22:52:07 2009 by  doxygen 1.5.7.1