AI_NavigationMesh::Edge Class Reference

#include <AI_NavigationMesh.h>

List of all members.


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.
TrianglegetOppositeTriangle (const Triangle *ptr_triangle) const
 Get triangle opposed to given trinagle.

Protected Attributes

AI_Line2 m_line2d
 2D projection of edge
Trianglem_ptr_triangles [2]
 Triangle on one side.
Vertexm_ptr_vertex1
 First vertex of edge in CW order.
Vertexm_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

2D projection of edge

Triangle on one side.

First vertex of edge in CW order.

Second vertex of edge in CW order.

Normal vector of edge projected to 2D.

Pointer to user data.


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