#include <AreaEdge.hpp>
Public Member Functions | |
AreaEdge () | |
void | addLink (const Point2 &p1, const Point2 &p2) |
Add a line that is part of the edge of the area. | |
void | removeLink (const Point2 &p1, const Point2 &p2) |
coor_t | distance (const Point2 &testPoint, Point2 &dest) const |
Calculate the distance from the test point to the nearest edge line. | |
bool | isGuilty (const Point2 &oldP, const Point2 &nextP) const |
Definition at line 35 of file AreaEdge.hpp.
|
Definition at line 31 of file AreaEdge.cpp. |
|
Add a line that is part of the edge of the area. Lines should be either clockwise or anti-clockwise memers of an edge polygon. A mix will most likely fail with an assertion, as the same point is likely to link to two other points. Definition at line 36 of file AreaEdge.cpp. References AssertFatal. Referenced by se_core::Area::Area(), and se_basic::NavMesh::walls(). |
|
Calculate the distance from the test point to the nearest edge line.
Definition at line 70 of file AreaEdge.cpp. References coor_double_t, se_core::Point2::distanceSquared(), se_core::Point2::nearestPoint(), and se_core::Tuple2::set(). |
|
Definition at line 94 of file AreaEdge.cpp. References coor_double_t, se_core::Point2::distanceSquared(), se_core::Point2::isLeft(), and se_core::Point2::nearestPoint(). |
|
Definition at line 46 of file AreaEdge.cpp. References AssertFatal. Referenced by se_core::Area::addNeighbour(). |
Home Page | SagaEngine trunk (updated nightly) reference generated Sun Dec 2 20:06:27 2007 by Doxygen version 1.3.9.1.