TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DetourNavMeshQuery.cpp File Reference
#include <float.h>
#include <string.h>
#include "DetourNavMeshQuery.h"
#include "DetourNavMesh.h"
#include "DetourNode.h"
#include "DetourCommon.h"
#include "DetourMath.h"
#include "DetourAlloc.h"
#include "DetourAssert.h"
#include <new>
+ Include dependency graph for DetourNavMeshQuery.cpp:

Classes

struct  dtSegInterval
 

Functions

dtNavMeshQuerydtAllocNavMeshQuery ()
 
void dtFreeNavMeshQuery (dtNavMeshQuery *navmesh)
 
static void insertInterval (dtSegInterval *ints, int &nints, const int maxInts, const short tmin, const short tmax, const dtPolyRef ref)
 

Variables

static const float H_SCALE = 2.0f
 

Function Documentation

static void insertInterval ( dtSegInterval ints,
int &  nints,
const int  maxInts,
const short  tmin,
const short  tmax,
const dtPolyRef  ref 
)
static
3147 {
3148  if (nints+1 > maxInts) return;
3149  // Find insertion point.
3150  int idx = 0;
3151  while (idx < nints)
3152  {
3153  if (tmax <= ints[idx].tmin)
3154  break;
3155  idx++;
3156  }
3157  // Move current results.
3158  if (nints-idx)
3159  memmove(ints+idx+1, ints+idx, sizeof(dtSegInterval)*(nints-idx));
3160  // Store
3161  ints[idx].ref = ref;
3162  ints[idx].tmin = tmin;
3163  ints[idx].tmax = tmax;
3164  nints++;
3165 }
short tmax
Definition: DetourNavMeshQuery.cpp:3142
short tmin
Definition: DetourNavMeshQuery.cpp:3142
dtPolyRef ref
Definition: DetourNavMeshQuery.cpp:3141
Definition: DetourNavMeshQuery.cpp:3139

+ Here is the caller graph for this function:

Variable Documentation

const float H_SCALE = 2.0f
static