AI_NavigationMesh::Edge Class Reference
#include <AI_NavigationMesh.h>
Detailed Description
Edge of navigation mesh.Public Member Functions | |
Edge () | |
Default constructor. | |
bool | isBorder (void) const |
Return true if edge is on border? | |
bool | isVertexContained (const Vertex *ptr_vertex) const |
Return true if vertex is part of edge. | |
Triangle * | getOppositeTriangle (const Triangle *ptr_triangle) const |
Get triangle opposed to given trinagle. | |
Protected Attributes | |
AI_Line2 | m_line2d |
2D projection of edge | |
Triangle * | m_ptr_triangles [2] |
Triangle on one side. | |
Vertex * | m_ptr_vertex1 |
First vertex of edge in CW order. | |
Vertex * | m_ptr_vertex2 |
Second vertex of edge in CW order. | |
AI_Vector2 | m_v_normal |
Normal vector of edge projected to 2D. | |
void * | m_ptr_user_data |
Pointer to user data. |
Constructor & Destructor Documentation
AI_NavigationMesh::Edge::Edge | ( | ) | [inline] |
Default constructor.
Member Function Documentation
bool AI_NavigationMesh::Edge::isBorder | ( | void | ) | const [inline] |
Return true if edge is on border?
bool AI_NavigationMesh::Edge::isVertexContained | ( | const Vertex * | ptr_vertex | ) | const [inline] |
Return true if vertex is part of edge.
AI_NavigationMesh::Triangle * AI_NavigationMesh::Edge::getOppositeTriangle | ( | const Triangle * | ptr_triangle | ) | const [inline] |
Get triangle opposed to given trinagle.
Member Data Documentation
AI_Line2 AI_NavigationMesh::Edge::m_line2d [protected] |
2D projection of edge
Triangle* AI_NavigationMesh::Edge::m_ptr_triangles[2] [protected] |
Triangle on one side.
Vertex* AI_NavigationMesh::Edge::m_ptr_vertex1 [protected] |
First vertex of edge in CW order.
Vertex* AI_NavigationMesh::Edge::m_ptr_vertex2 [protected] |
Second vertex of edge in CW order.
AI_Vector2 AI_NavigationMesh::Edge::m_v_normal [protected] |
Normal vector of edge projected to 2D.
void* AI_NavigationMesh::Edge::m_ptr_user_data [protected] |
Pointer to user data.
The documentation for this class was generated from the following file: