AI_NavigationMesh::Corner Class Reference
#include <AI_NavigationMesh.h>
Detailed Description
Corner (convex or concave) of navigation mesh.Public Member Functions | |
Corner () | |
Default constructor. | |
Vertex * | getVertex (void) |
Return vertex index to which the corner referes. | |
Protected Member Functions | |
void | addVisibleConcaveCorner (Corner *ptr_corner) |
Add corner into list of corners visible from this corner. | |
void | adjustWidth (float f) |
Store minimum from actual corner width and width passes as parameter. | |
Protected Attributes | |
Vertex * | m_ptr_vertex |
Corner vertex. | |
Edge * | m_ptr_edges [2] |
Border edges adjacent to corner in CW order. | |
AI_Vector2 | m_v_shift |
float | m_f_width |
Corner width. Maximum edge offset for which the corner remains inside navigation mesh. | |
bool | m_b_concave |
Concave corner flag. | |
CornerArray | m_arr_visible_corners |
All other corners visible from this corner. | |
AI_AStar::Node * | m_ptr_astar_node |
Pointer to user data. |
Constructor & Destructor Documentation
AI_NavigationMesh::Corner::Corner | ( | ) | [inline] |
Default constructor.
Member Function Documentation
void AI_NavigationMesh::Corner::addVisibleConcaveCorner | ( | Corner * | ptr_corner | ) | [inline, protected] |
Add corner into list of corners visible from this corner.
void AI_NavigationMesh::Corner::adjustWidth | ( | float | f | ) | [inline, protected] |
Store minimum from actual corner width and width passes as parameter.
AI_NavigationMesh::Vertex * AI_NavigationMesh::Corner::getVertex | ( | void | ) | [inline] |
Return vertex index to which the corner referes.
Member Data Documentation
Vertex* AI_NavigationMesh::Corner::m_ptr_vertex [protected] |
Corner vertex.
Edge* AI_NavigationMesh::Corner::m_ptr_edges[2] [protected] |
Border edges adjacent to corner in CW order.
AI_Vector2 AI_NavigationMesh::Corner::m_v_shift [protected] |
Vector of offset. Ensure that corner will always lie on both edges when edge's normals and corner shift will be multiplyed by same constant (agent width).
float AI_NavigationMesh::Corner::m_f_width [protected] |
Corner width. Maximum edge offset for which the corner remains inside navigation mesh.
bool AI_NavigationMesh::Corner::m_b_concave [protected] |
Concave corner flag.
All other corners visible from this corner.
Pointer to user data.
The documentation for this class was generated from the following file: