#include <waypointpair.h>
Public Member Functions | |
| WaypointPair (const Waypoint *pFrom, const Waypoint *pTo) | |
| constructor assigns the two waypoints, calculates slope and 2D Distance | |
| WaypointPair () | |
| virtual | ~WaypointPair () |
| osg::Vec3 | ClosestPointTo (const osg::Vec3 &pPoint) |
| returns the closest point to the path between these two waypoints, currently unused and unimplemented, but seems like it could be useful. | |
| void | Calculate3DDistance () |
| calculates distance between the two points | |
| float | Get3DDistance () const |
| void | CalculateSlope () |
| Calculates the slope in the Z Plane. | |
| float | GetSlope () const |
| void | SetFrom (const Waypoint *pWaypoint) |
| Setters for the From and To waypoints if this is used remember to call Calculate2DDistance() and CalculateSlope(). | |
| void | SetTo (const Waypoint *pWaypoint) |
| const Waypoint * | GetWaypointFrom () const |
| Getters for the waypoints. | |
| const Waypoint * | GetWaypointTo () const |
| const osg::Vec3 & | GetFrom () const |
| Getters that return a reference the the actual position just for convenience really. | |
| const osg::Vec3 & | GetTo () const |
Also used as a helper for computing costs between waypoints.
constructor assigns the two waypoints, calculates slope and 2D Distance
| dtAI::WaypointPair::WaypointPair | ( | ) |
| dtAI::WaypointPair::~WaypointPair | ( | ) | [virtual] |
| osg::Vec3 dtAI::WaypointPair::ClosestPointTo | ( | const osg::Vec3 & | pPoint | ) |
returns the closest point to the path between these two waypoints, currently unused and unimplemented, but seems like it could be useful.
| void dtAI::WaypointPair::Calculate3DDistance | ( | ) |
calculates distance between the two points
| float dtAI::WaypointPair::Get3DDistance | ( | ) | const |
| void dtAI::WaypointPair::CalculateSlope | ( | ) |
Calculates the slope in the Z Plane.
| float dtAI::WaypointPair::GetSlope | ( | ) | const |
| void dtAI::WaypointPair::SetFrom | ( | const Waypoint * | pWaypoint | ) |
Setters for the From and To waypoints if this is used remember to call Calculate2DDistance() and CalculateSlope().
| void dtAI::WaypointPair::SetTo | ( | const Waypoint * | pWaypoint | ) |
| const Waypoint * dtAI::WaypointPair::GetWaypointFrom | ( | ) | const |
Getters for the waypoints.
| const Waypoint * dtAI::WaypointPair::GetWaypointTo | ( | ) | const |
| const osg::Vec3 & dtAI::WaypointPair::GetFrom | ( | ) | const |
Getters that return a reference the the actual position just for convenience really.
| const osg::Vec3 & dtAI::WaypointPair::GetTo | ( | ) | const |