| 1234567891011121314151617181920212223242526272829303132333435363738 |
- $#include "MathDefs.h"
- static const float M_PI;
- static const int M_MIN_INT;
- static const int M_MAX_INT;
- static const unsigned M_MIN_UNSIGNED;
- static const unsigned M_MAX_UNSIGNED;
- static const float M_EPSILON;
- static const float M_LARGE_EPSILON;
- static const float M_MIN_NEARCLIP;
- static const float M_MAX_FOV;
- static const float M_LARGE_VALUE;
- static const float M_INFINITY;
- static const float M_DEGTORAD;
- static const float M_DEGTORAD_2;
- static const float M_RADTODEG;
- enum Intersection
- {
- OUTSIDE,
- INTERSECTS,
- INSIDE
- };
- float Lerp(float lhs, float rhs, float t);
- float Min(float lhs, float rhs);
- float Max(float lhs, float rhs);
- float Abs(float value);
- float Sign(float value);
- float Clamp(float value, float min, float max);
- float SmoothStep(float lhs, float rhs, float t);
- bool Equals(float lhs, float rhs);
- float Random();
- float Random(float range);
- float Random(float min, float max);
- int Random @ RandomInt(int range);
- int Random @ RandomInt(int min, int max);
|