player's view area.
More...
#include <view_area.h>
◆ ViewArea() [1/2]
| rcsc::ViewArea::ViewArea |
( |
const GameTime & |
t | ) |
|
|
inlineexplicit |
construct invalid object
- Parameters
-
◆ ViewArea() [2/2]
| rcsc::ViewArea::ViewArea |
( |
const double & |
view_width, |
|
|
const Vector2D & |
origin, |
|
|
const AngleDeg & |
angle, |
|
|
const GameTime & |
t |
|
) |
| |
|
inline |
construct with all variables
- Parameters
-
| view_width | the width of player's view area |
| origin | the origin point of this view area |
| angle | the angle from origin point of this view area |
| t | time of this view area |
◆ angle()
| const AngleDeg & rcsc::ViewArea::angle |
( |
| ) |
const |
|
inline |
get player's head angle when see message is received.
- Returns
- player's head angle when see message is received.
◆ contains()
| bool rcsc::ViewArea::contains |
( |
const Vector2D & |
point, |
|
|
const double & |
dir_thr, |
|
|
const double & |
visible_dist2 |
|
) |
| const |
|
inline |
check if point is contained by this view area or not
- Parameters
-
| point | checked point |
| dir_thr | angle threshold value |
| visible_dist2 | squared visible distance value |
◆ isValid()
| bool rcsc::ViewArea::isValid |
( |
| ) |
const |
|
inline |
check if this object is valid or not
- Returns
- the validity of the object
◆ origin()
| const Vector2D & rcsc::ViewArea::origin |
( |
| ) |
const |
|
inline |
get player's global position when see message is received.
- Returns
- origin point (player's global position when see message is received.)
◆ time()
| const GameTime & rcsc::ViewArea::time |
( |
| ) |
const |
|
inline |
get the game time when this information is generated
- Returns
- game time
◆ viewWidth()
| const double & rcsc::ViewArea::viewWidth |
( |
| ) |
const |
|
inline |
get the width of view area
- Returns
- the width of view area (degree)
The documentation for this class was generated from the following file: