Functions
misc.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

float computeOBBIntersection (const CVec2 &a, const CVec2 &b, const CVec2 &c, const CVec2 &d, float size)
bool intersectPathCapsule (const CVec2 &c, const CVec2 &p, float r0, const CVec2 &hd, const CVec2 &a, const CVec2 &b, float radius, float &f)
bool intersectPathCircle (const CVec2 &c, const CVec2 &p, float r0, const CVec2 &hd, const CVec2 &m1, float r1, float &angle)
bool intersectPathLine (const CVec2 &c, const CVec2 &p, float r0, const CVec2 &hd, const CVec2 &p1, const CVec2 &p2, float &angle)
bool intersectRayCapsule (const CVec2 &x, const CVec2 &t, const CVec2 &a, const CVec2 &b, float radius, float &f)
bool intersectRayCircle (const CVec2 &m, float r, const CVec2 &x, const CVec2 &t, float &f)
bool intersectRayLineSegment (const CVec2 &a, const CVec2 &b, const CVec2 &x, const CVec2 &t, float &f)
float shortestDistanceToLineSegment (const CVec2 &a, const CVec2 &b, const CVec2 &x)
template<class T >
sqr (T f)

Function Documentation

float computeOBBIntersection ( const CVec2 a,
const CVec2 b,
const CVec2 c,
const CVec2 d,
float  size 
)

Definition at line 346 of file misc.cpp.

bool intersectPathCapsule ( const CVec2 c,
const CVec2 p,
float  r0,
const CVec2 hd,
const CVec2 a,
const CVec2 b,
float  radius,
float &  f 
)

Definition at line 287 of file misc.cpp.

bool intersectPathCircle ( const CVec2 c,
const CVec2 p,
float  r0,
const CVec2 hd,
const CVec2 m1,
float  r1,
float &  angle 
)

Definition at line 162 of file misc.cpp.

bool intersectPathLine ( const CVec2 c,
const CVec2 p,
float  r0,
const CVec2 hd,
const CVec2 p1,
const CVec2 p2,
float &  angle 
)

Definition at line 209 of file misc.cpp.

bool intersectRayCapsule ( const CVec2 x,
const CVec2 t,
const CVec2 a,
const CVec2 b,
float  radius,
float &  f 
)

Definition at line 122 of file misc.cpp.

bool intersectRayCircle ( const CVec2 m,
float  r,
const CVec2 x,
const CVec2 t,
float &  f 
)

m - center of the circle r - radius of the circle x - starting point of the ray t - ray f - param - return value

Definition at line 24 of file misc.cpp.

bool intersectRayLineSegment ( const CVec2 a,
const CVec2 b,
const CVec2 x,
const CVec2 t,
float &  f 
)

Definition at line 78 of file misc.cpp.

float shortestDistanceToLineSegment ( const CVec2 a,
const CVec2 b,
const CVec2 x 
)

Definition at line 100 of file misc.cpp.

template<class T >
T sqr ( f)

Definition at line 14 of file misc.h.



robbie_architecture
Author(s): Viktor Seib
autogenerated on Mon Oct 6 2014 02:53:09