Maratis Engine
Functions

MCore/Sources/MMaths.cpp File Reference

#include "../Includes/MCore.h"

Functions

void sortFloatList (int indexList[], float floatList[], int start, int end)
void sortFloatList (float floatList[], int start, int end)
unsigned int getNextPowerOfTwo (unsigned int x)
bool isEdgeToEdge2dIntersection (const MVector2 &A, const MVector2 &B, const MVector2 &C, const MVector2 &D, MVector2 *I)
bool isLineCircleIntersection (const MVector2 &origin, const MVector2 &dest, const MVector2 &circleCenter, float circleRadius)
bool isBoxToBoxCollision (const MVector3 &minA, const MVector3 &maxA, const MVector3 &minB, const MVector3 &maxB)
bool isBoxToBox2dCollision (const MVector2 &minA, const MVector2 &maxA, const MVector2 &minB, const MVector2 &maxB)
bool isPointInBox (const MVector3 &point, const MVector3 &min, const MVector3 &max)
bool isPointInBox2d (const MVector2 &point, const MVector2 &min, const MVector2 &max)
bool isEdgeToBoxCollision (const MVector3 &origin, const MVector3 &dest, const MVector3 &min, const MVector3 &max)
bool isEdgePlaneIntersection (const MVector3 &origin, const MVector3 &dest, const MVector3 &planePoint, const MVector3 &normal, MVector3 *point)
bool isRaySphereIntersection (const MVector3 &origin, const MVector3 &direction, const MVector3 &sphereCenter, float sphereRadius, MVector3 *point)
bool isRayPlaneIntersection (const MVector3 &origin, const MVector3 &direction, const MVector3 &planePoint, const MVector3 &planeNormal, MVector3 *point)
bool isPointInTriangle (const MVector3 &point, const MVector3 &a, const MVector3 &b, const MVector3 &c, const MVector3 &normal)
bool isEdgeTriangleIntersection (const MVector3 &origin, const MVector3 &dest, const MVector3 &a, const MVector3 &b, const MVector3 &c, const MVector3 &normal, MVector3 *point)
MVector3 getTriangleNormal (const MVector3 &a, const MVector3 &b, const MVector3 &c)

Function Documentation

unsigned int getNextPowerOfTwo ( unsigned int  x)
MVector3 getTriangleNormal ( const MVector3 a,
const MVector3 b,
const MVector3 c 
)
bool isBoxToBox2dCollision ( const MVector2 minA,
const MVector2 maxA,
const MVector2 minB,
const MVector2 maxB 
)
bool isBoxToBoxCollision ( const MVector3 minA,
const MVector3 maxA,
const MVector3 minB,
const MVector3 maxB 
)
bool isEdgePlaneIntersection ( const MVector3 origin,
const MVector3 dest,
const MVector3 planePoint,
const MVector3 normal,
MVector3 point 
)
bool isEdgeToBoxCollision ( const MVector3 origin,
const MVector3 dest,
const MVector3 min,
const MVector3 max 
)
bool isEdgeToEdge2dIntersection ( const MVector2 A,
const MVector2 B,
const MVector2 C,
const MVector2 D,
MVector2 I 
)
bool isEdgeTriangleIntersection ( const MVector3 origin,
const MVector3 dest,
const MVector3 a,
const MVector3 b,
const MVector3 c,
const MVector3 normal,
MVector3 point 
)
bool isLineCircleIntersection ( const MVector2 origin,
const MVector2 dest,
const MVector2 circleCenter,
float  circleRadius 
)
bool isPointInBox ( const MVector3 point,
const MVector3 min,
const MVector3 max 
)
bool isPointInBox2d ( const MVector2 point,
const MVector2 min,
const MVector2 max 
)
bool isPointInTriangle ( const MVector3 point,
const MVector3 a,
const MVector3 b,
const MVector3 c,
const MVector3 normal 
)
bool isRayPlaneIntersection ( const MVector3 origin,
const MVector3 direction,
const MVector3 planePoint,
const MVector3 planeNormal,
MVector3 point 
)
bool isRaySphereIntersection ( const MVector3 origin,
const MVector3 direction,
const MVector3 sphereCenter,
float  sphereRadius,
MVector3 point 
)
void sortFloatList ( int  indexList[],
float  floatList[],
int  start,
int  end 
)
void sortFloatList ( float  floatList[],
int  start,
int  end 
)
 All Classes Files Functions Variables Enumerations Enumerator Friends Defines