クラス rcsc::AbsAngleDiffGreaterPlayerPredicate

check if target player's absolute angle difference from base angle is greater than threshold angle [詳細]

#include <player_predicate.h>

rcsc::AbsAngleDiffGreaterPlayerPredicateに対する継承グラフ

rcsc::PlayerPredicate すべてのメンバ一覧

Public メソッド

 AbsAngleDiffGreaterPlayerPredicate (const Vector2D &base_point, const AngleDeg &base_angle, const double &threshold)
 construct with base point and threshold distance
bool operator() (const AbstractPlayerObject &p) const
 predicate function

説明

check if target player's absolute angle difference from base angle is greater than threshold angle


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

rcsc::AbsAngleDiffGreaterPlayerPredicate::AbsAngleDiffGreaterPlayerPredicate ( const Vector2D base_point,
const AngleDeg base_angle,
const double &  threshold 
) [inline]

construct with base point and threshold distance

引数:
base_point base point
base_angle compared angle
threshold angle threshold value (degree)


関数

bool rcsc::AbsAngleDiffGreaterPlayerPredicate::operator() ( const AbstractPlayerObject p  )  const [inline, virtual]

predicate function

引数:
p const reference to the target player object
戻り値:
true if target player's absolute angle difference from base_angle is greater than equal threshold

rcsc::PlayerPredicateを実装しています。


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