Shadowrun: Awakened 29 September 2011 - Build 871
Namespaces | Defines | Functions
Scalar.hpp File Reference
#include <cat/Platform.hpp>
#include <cmath>
Include dependency graph for Scalar.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  cat

Defines

#define CAT_HALF_PI_32   1.5707963268f
#define CAT_HALF_PI_64   1.5707963267948966192313216916398
#define CAT_INV_PI_32   0.3183098862f
#define CAT_INV_PI_64   0.31830988618379067153776752674503
#define CAT_PI_32   3.14159265f
#define CAT_PI_64   3.1415926535897932384626433832795
#define CAT_QUARTER_PI_32   0.7853981634f
#define CAT_QUARTER_PI_64   0.78539816339744830961566084581988
#define CAT_TWO_PI_32   6.28318531f
#define CAT_TWO_PI_64   6.283185307179586476925286766559

Functions

template<class Scalar >
void cat::Clamp (Scalar &x, Scalar low, Scalar high)
f64 cat::Deg2Rad (f64 angle)
f32 cat::Deg2Rad (f32 angle)
f32 cat::InvSqrt (f32 x)
f32 cat::Rad2Deg (f32 angle)
f64 cat::Rad2Deg (f64 angle)

Define Documentation

#define CAT_HALF_PI_32   1.5707963268f

Definition at line 44 of file Scalar.hpp.

#define CAT_HALF_PI_64   1.5707963267948966192313216916398
#define CAT_INV_PI_32   0.3183098862f

Definition at line 48 of file Scalar.hpp.

#define CAT_INV_PI_64   0.31830988618379067153776752674503

Definition at line 47 of file Scalar.hpp.

#define CAT_PI_32   3.14159265f

Definition at line 42 of file Scalar.hpp.

#define CAT_PI_64   3.1415926535897932384626433832795

Definition at line 41 of file Scalar.hpp.

#define CAT_QUARTER_PI_32   0.7853981634f

Definition at line 46 of file Scalar.hpp.

#define CAT_QUARTER_PI_64   0.78539816339744830961566084581988

Definition at line 45 of file Scalar.hpp.

#define CAT_TWO_PI_32   6.28318531f

Definition at line 40 of file Scalar.hpp.

Referenced by cat::Deg2Rad(), and cat::Rad2Deg().

#define CAT_TWO_PI_64   6.283185307179586476925286766559

Definition at line 39 of file Scalar.hpp.

Referenced by cat::Deg2Rad(), and cat::Rad2Deg().


Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net