mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 23:54:35 +00:00
Engine directory for ticket #1
This commit is contained in:
parent
352279af7a
commit
7dbfe6994d
3795 changed files with 1363358 additions and 0 deletions
28
Engine/lib/squish/squishMath.h
Normal file
28
Engine/lib/squish/squishMath.h
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#ifndef _SQUISH_MATH_H_
|
||||
#define _SQUISH_MATH_H_
|
||||
|
||||
#define FLT_MAX 3.402823466e+38F
|
||||
#define FLT_EPSILON 1.192092896e-07F
|
||||
#define INT_MAX 2147483647 /* maximum (signed) int value */
|
||||
|
||||
// Abstract the math in squish so it doesn't use std:: directly
|
||||
namespace SquishMath
|
||||
{
|
||||
float fabs( const float f );
|
||||
float pow( const float x, const float y );
|
||||
float cos( const float theta );
|
||||
float sin( const float theta );
|
||||
float sqrt( const float a );
|
||||
float atan2( const float a, const float b );
|
||||
|
||||
float min( const float a, const float b );
|
||||
float max( const float a, const float b );
|
||||
|
||||
float floor( const float a );
|
||||
float ceil( const float a );
|
||||
|
||||
int min( const int a, const int b );
|
||||
int max( const int a, const int b );
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue