クラス rcsc::AbsAngleDiffLessPlayerPredicate

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

#include <player_predicate.h>

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

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

Public メソッド

 AbsAngleDiffLessPlayerPredicate (const Vector2D &base_point, const AngleDeg &base_angle, const double &degree_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 less than threshold angle


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

rcsc::AbsAngleDiffLessPlayerPredicate::AbsAngleDiffLessPlayerPredicate ( const Vector2D base_point,
const AngleDeg base_angle,
const double &  degree_threshold 
) [inline]

construct with base point and threshold distance

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


関数

bool rcsc::AbsAngleDiffLessPlayerPredicate::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 less than equal threshold

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


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