Menge
Modular Pedestrian Simulation Framework for Research and Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Menge::Math::Geometry2D Class Referenceabstract

Abstract 2d Geometry class for FSM queries. More...

#include <Geometry2D.h>

Inheritance diagram for Menge::Math::Geometry2D:
Menge::Math::AABBShape Menge::Math::CircleShape Menge::Math::OBBShape Menge::BFSM::AABBCondition Menge::BFSM::CircleCondition Menge::BFSM::OBBCondition

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...
 

Detailed Description

Abstract 2d Geometry class for FSM queries.

Supports queries to determine if points lie inside/outside a particular shape.

Member Function Documentation

virtual bool Menge::Math::Geometry2D::containsPoint ( const Vector2 pt) const
pure virtual

Determine if the point is inside the shape based on the instance properties.

Parameters
ptThe point to test.
Returns
True if the point is inside the shape, false otherwise.

Implemented in Menge::BFSM::OBBCondition, Menge::Math::OBBShape, Menge::BFSM::AABBCondition, Menge::Math::AABBShape, Menge::BFSM::CircleCondition, and Menge::Math::CircleShape.

virtual bool Menge::Math::Geometry2D::containsPoint ( const Vector2 pt,
const Vector2 pos 
) const
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.

Parameters
ptThe point to test.
posThe "position" of the shape.
Returns
True if the point is inside the shape, false otherwise.

Implemented in Menge::Math::OBBShape, Menge::Math::AABBShape, and Menge::Math::CircleShape.


The documentation for this class was generated from the following file: