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

Functions

static int sweepCircleCircle (const float *c0, const float r0, const float *v, const float *c1, const float r1, float &tmin, float &tmax)
 
static int isectRaySeg (const float *ap, const float *u, const float *bp, const float *bq, float &t)
 
dtObstacleAvoidanceDebugDatadtAllocObstacleAvoidanceDebugData ()
 
void dtFreeObstacleAvoidanceDebugData (dtObstacleAvoidanceDebugData *ptr)
 
static void normalizeArray (float *arr, const int n)
 
dtObstacleAvoidanceQuerydtAllocObstacleAvoidanceQuery ()
 
void dtFreeObstacleAvoidanceQuery (dtObstacleAvoidanceQuery *ptr)
 
void dtNormalize2D (float *v)
 
void dtRorate2D (float *dest, const float *v, float ang)
 

Variables

static const float DT_PI = 3.14159265f
 

Function Documentation

◆ dtAllocObstacleAvoidanceDebugData()

dtObstacleAvoidanceDebugData* dtAllocObstacleAvoidanceDebugData ( )

◆ dtAllocObstacleAvoidanceQuery()

dtObstacleAvoidanceQuery* dtAllocObstacleAvoidanceQuery ( )

◆ dtFreeObstacleAvoidanceDebugData()

void dtFreeObstacleAvoidanceDebugData ( dtObstacleAvoidanceDebugData ptr)

◆ dtFreeObstacleAvoidanceQuery()

void dtFreeObstacleAvoidanceQuery ( dtObstacleAvoidanceQuery ptr)

◆ dtNormalize2D()

void dtNormalize2D ( float *  v)
inline

◆ dtRorate2D()

void dtRorate2D ( float *  dest,
const float *  v,
float  ang 
)
inline

◆ isectRaySeg()

static int isectRaySeg ( const float *  ap,
const float *  u,
const float *  bp,
const float *  bq,
float &  t 
)
static

◆ normalizeArray()

static void normalizeArray ( float *  arr,
const int  n 
)
static

◆ sweepCircleCircle()

static int sweepCircleCircle ( const float *  c0,
const float  r0,
const float *  v,
const float *  c1,
const float  r1,
float &  tmin,
float &  tmax 
)
static

Variable Documentation

◆ DT_PI

const float DT_PI = 3.14159265f
static