The edge of a funnel.
More...
#include <Funnel.h>
|
size_t | _id |
| The identifier of the portal from which this wedge originates.
|
|
size_t | _endID |
| The identifier of the portal that ENDS the wedge.
|
|
Vector2 | _origin |
| The origin of the wedge.
|
|
Vector2 | _dir |
| The direction of this funnel edge.
|
|
Menge::FunnelEdge::FunnelEdge |
( |
size_t |
id, |
|
|
size_t |
end, |
|
|
const Vector2 & |
dir, |
|
|
const Vector2 & |
origin |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
id | The identifier of the portal from which this direction arises. |
end | The identifier of the portal at which this wedge ends. |
dir | The direction from the apex to the portal. |
origin | The origin of this funnel "wedge". |
bool Menge::FunnelEdge::isOnLeft |
( |
const Vector2 & |
dir | ) |
const |
|
inline |
Reports if the given direction is to the left of this edge.
- Parameters
-
dir | The direction to test. |
- Returns
- A boolean reporting if the direction is to the left of this edge (true) or to the right (false).
bool Menge::FunnelEdge::isOnRight |
( |
const Vector2 & |
dir | ) |
const |
|
inline |
Reports if the given direction is to the right of this edge.
- Parameters
-
dir | The direction to test. |
- Returns
- A boolean reporting if the direction is to the right of this edge (true) or to the left (false).
void Menge::FunnelEdge::set |
( |
size_t |
id, |
|
|
const Vector2 & |
dir |
|
) |
| |
|
inline |
Sets the properties of the funnel edge.
- Parameters
-
id | The id of the portal to which this funnel edge is associated. |
dir | The direction of the edge. |
The documentation for this class was generated from the following file: