![Logo](../../rorlogo.png) |
RigsofRods
Soft-body Physics Simulation
|
Go to the documentation of this file.
37 a = (
mirand&0x007fffff) | 0x40000000;
39 return( *((
float*)&a) - 2.0f )*0.5f;
49 a = (
mirand&0x007fffff) | 0x40000000;
51 return( *((
float*)&a) - 2.0f );
61 a = (
mirand&0x007fffff) | 0x40000000;
63 return( *((
float*)&a) - 3.0f );
75 int i=12102203*
x+1064652319;
84 int i = 8388608*
x+1065353216;
94 int i =
y * ( (*(
int *)&v) - 1065353216) + 1065353216;
104 int i = (( (*(
int *)&f) - 1065353216)>>1) + 1065353216;
115 int i = 0x5f3759df - ( (*(
int *)&f) >> 1);
127 int i = 0x5f3759df - ( (*(
int *)&
y) >>1);
130 y *= (1.5f - (0.5f * v *
y *
y));
142 return (
x > 0.0f) ? 1.0f : (
x < 0.0f) ? -1.0f : 0.0f;
float sign(const float x)
float fast_invSqrt(const float v)
float approx_exp(const float x)
float approx_invSqrt(const float y)
float fast_length(Ogre::Vector3 v)
float approx_pow(const float x, const float y)
Ogre::Vector3 approx_normalise(Ogre::Vector3 v)
float approx_pow2(const float x)
Ogre::Vector3 fast_normalise(Ogre::Vector3 v)
Central state/object manager and communications hub.
float approx_length(Ogre::Vector3 v)
float approx_sqrt(const float y)
float fast_sqrt(const float x)