Recast Navigation
Navigation-mesh Toolset for Games
DetourNavMesh.cpp File Reference
#include <float.h>
#include <string.h>
#include <stdio.h>
#include "DetourNavMesh.h"
#include "DetourNode.h"
#include "DetourCommon.h"
#include "DetourMath.h"
#include "DetourAlloc.h"
#include "DetourAssert.h"
#include <new>

Classes

struct  dtTileState
 
struct  dtPolyState
 

Functions

bool overlapSlabs (const float *amin, const float *amax, const float *bmin, const float *bmax, const float px, const float py)
 
static float getSlabCoord (const float *va, const int side)
 
static void calcSlabEndPoints (const float *va, const float *vb, float *bmin, float *bmax, const int side)
 
int computeTileHash (int x, int y, const int mask)
 
unsigned int allocLink (dtMeshTile *tile)
 
void freeLink (dtMeshTile *tile, unsigned int link)
 
dtNavMeshdtAllocNavMesh ()
 Allocates a navigation mesh object using the Detour allocator. More...
 
void dtFreeNavMesh (dtNavMesh *navmesh)
 Frees the specified navigation mesh object using the Detour allocator. More...
 

Function Documentation

◆ allocLink()

unsigned int allocLink ( dtMeshTile tile)
inline

◆ calcSlabEndPoints()

static void calcSlabEndPoints ( const float *  va,
const float *  vb,
float *  bmin,
float *  bmax,
const int  side 
)
static

◆ computeTileHash()

int computeTileHash ( int  x,
int  y,
const int  mask 
)
inline

◆ freeLink()

void freeLink ( dtMeshTile tile,
unsigned int  link 
)
inline

◆ getSlabCoord()

static float getSlabCoord ( const float *  va,
const int  side 
)
static

◆ overlapSlabs()

bool overlapSlabs ( const float *  amin,
const float *  amax,
const float *  bmin,
const float *  bmax,
const float  px,
const float  py 
)
inline