Neo  0.5.0
Developer Documentation
Maths.h File Reference

Go to the source code of this file.

Classes

struct  Neo::Range
 Implements a range data structure. More...
 

Namespaces

 Neo
 

Functions

NEO_CORE_EXPORT unsigned int Neo::getNextPowerOfTwo (unsigned int x)
 
NEO_CORE_EXPORT float Neo::loopFloat (float val, float min, float max)
 
NEO_CORE_EXPORT void Neo::sortFloatList (int indexList[], float floatList[], int start, int end)
 
NEO_CORE_EXPORT void Neo::sortFloatList (float floatList[], int start, int end)
 
NEO_CORE_EXPORT bool Neo::isBoxToBoxCollision (const Vector3 &minA, const Vector3 &maxA, const Vector3 &minB, const Vector3 &maxB)
 
NEO_CORE_EXPORT bool Neo::isBoxToBox2dCollision (const Vector2 &minA, const Vector2 &maxA, const Vector2 &minB, const Vector2 &maxB)
 
NEO_CORE_EXPORT bool Neo::isPointInBox (const Vector3 &point, const Vector3 &min, const Vector3 &max)
 
NEO_CORE_EXPORT bool Neo::isPointInBox2d (const Vector2 &point, const Vector2 &min, const Vector2 &max)
 
NEO_CORE_EXPORT bool Neo::isEdgeToBoxCollision (const Vector3 &origin, const Vector3 &dest, const Vector3 &min, const Vector3 &max)
 
NEO_CORE_EXPORT bool Neo::isEdgeToEdge2dIntersection (const Vector2 &A, const Vector2 &B, const Vector2 &C, const Vector2 &D, Vector2 *I)
 
NEO_CORE_EXPORT bool Neo::isPointInTriangle (const Vector3 &point, const Vector3 &a, const Vector3 &b, const Vector3 &c, const Vector3 &normal)
 
NEO_CORE_EXPORT bool Neo::isLineCircleIntersection (const Vector2 &origin, const Vector2 &dest, const Vector2 &circleCenter, float circleRadius)
 
NEO_CORE_EXPORT bool Neo::isRaySphereIntersection (const Vector3 &origin, const Vector3 &direction, const Vector3 &sphereCenter, float sphereRadius, Vector3 *point)
 
NEO_CORE_EXPORT bool Neo::isRayPlaneIntersection (const Vector3 &origin, const Vector3 &direction, const Vector3 &planePoint, const Vector3 &planeNormal, Vector3 *point)
 
NEO_CORE_EXPORT bool Neo::isEdgePlaneIntersection (const Vector3 &origin, const Vector3 &dest, const Vector3 &planePoint, const Vector3 &normal, Vector3 *point)
 
NEO_CORE_EXPORT bool Neo::isEdgeTriangleIntersection (const Vector3 &origin, const Vector3 &dest, const Vector3 &a, const Vector3 &b, const Vector3 &c, const Vector3 &normal, Vector3 *point)
 
NEO_CORE_EXPORT Vector3 Neo::getTriangleNormal (const Vector3 &a, const Vector3 &b, const Vector3 &c)
 
NEO_CORE_EXPORT void Neo::simplifyDP (float tol, Vector3 *v, int j, int k, int *mk)
 
NEO_CORE_EXPORT float Neo::linearInterpolation (float y1, float y2, float mu)
 
NEO_CORE_EXPORT float Neo::cubicInterpolation (float y0, float y1, float y2, float y3, float mu)
 
NEO_CORE_EXPORT float Neo::CatmullRomInterpolation (float y0, float y1, float y2, float y3, float mu)
 
NEO_CORE_EXPORT float Neo::HermiteInterpolation (float y0, float y1, float y2, float y3, float mu, float tension, float bias, bool begin=false, bool end=false)
 
NEO_CORE_EXPORT float Neo::HueToRGB (float v1, float v2, float vH)
 
NEO_CORE_EXPORT Vector3 Neo::RGBToHSV (Vector3 rgbColor)
 
NEO_CORE_EXPORT Vector3 Neo::HSVToRGB (Vector3 HSVColor)
 
NEO_CORE_EXPORT Vector3 Neo::RGBToHSL (Vector3 rgbColor)
 
NEO_CORE_EXPORT Vector3 Neo::HSLToRGB (Vector3 hslColor)