Menge
Modular Pedestrian Simulation Framework for Research and Development
|
Abstract 2d Geometry class for FSM queries. More...
#include <Geometry2D.h>
Public Member Functions | |
Geometry2D () | |
Constructor. | |
virtual | ~Geometry2D () |
Simple destructor. | |
virtual bool | containsPoint (const Vector2 &pt) const =0 |
Determine if the point is inside the shape based on the instance properties. More... | |
virtual bool | containsPoint (const Vector2 &pt, const Vector2 &pos) const =0 |
Determine if the point is inside the shape, not located at the instance value, but at the given position. Definition of "at the
given position" is defined by each shape. More... | |
Abstract 2d Geometry class for FSM queries.
Supports queries to determine if points lie inside/outside a particular shape.
|
pure virtual |
Determine if the point is inside the shape based on the instance properties.
pt | The point to test. |
Implemented in Menge::BFSM::OBBCondition, Menge::Math::OBBShape, Menge::BFSM::AABBCondition, Menge::Math::AABBShape, Menge::BFSM::CircleCondition, and Menge::Math::CircleShape.
|
pure virtual |
Determine if the point is inside the shape, not located at the instance value, but at the given position. Definition of "at the given position" is defined by each shape.
pt | The point to test. |
pos | The "position" of the shape. |
Implemented in Menge::Math::OBBShape, Menge::Math::AABBShape, and Menge::Math::CircleShape.