48 #include "mengeCommon.h"
72 Portal(
float x0,
float y0,
float x1,
float y1 );
82 void set(
float x0,
float y0,
float x1,
float y1 );
130 #endif // __PORTAL_H__
A simple portal definition.
Definition: Portal.h:57
Vector2 _p0
The first end point of the portal line segment.
Definition: Portal.h:112
The core namespace. All elements of Menge are contained in this namespace.
Definition: AgentGenerator.cpp:43
Portal()
Default constructor.
Definition: Portal.h:62
void set(float x0, float y0, float x1, float y1)
Sets the geometry of the portal.
Definition: Portal.cpp:55
float _mag
The distance between endpoints (i.e., length of the portal).
Definition: Portal.h:122
Vector2 nearestPoint(const Vector2 &pos, float radius)
Computes the neareset clearable point w.r.t. the portal.
Definition: Portal.cpp:75
Vector2 _dir
The direction from the first to the second end point of the portal.
Definition: Portal.h:127
Vector2 _p1
The second end point of the portal line segment.
Definition: Portal.h:117