Functions
misc.cpp File Reference
#include "vec2.h"
#include "misc.h"
#include <iostream>
#include "math.h"
#include <assert.h>
#include "Obb2D.h"
Include dependency graph for misc.cpp:

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)
bool isInAABB (const std::pair< CVec2, CVec2 > &aabb, const CVec2 &p)
float shortestDistanceToLineSegment (const CVec2 &a, const CVec2 &b, const CVec2 &x)
bool testAABBOverlap (const std::pair< CVec2, CVec2 > &a, const std::pair< CVec2, CVec2 > &b)

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.

bool isInAABB ( const std::pair< CVec2, CVec2 > &  aabb,
const CVec2 p 
)

Definition at line 321 of file misc.cpp.

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

Definition at line 100 of file misc.cpp.

bool testAABBOverlap ( const std::pair< CVec2, CVec2 > &  a,
const std::pair< CVec2, CVec2 > &  b 
)

Definition at line 330 of file misc.cpp.



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