Blender V2.61 - r43446
Typedefs | Functions

MT_Scalar.h File Reference

#include <math.h>
#include <float.h>
#include "MT_random.h"
#include "NM_Scalar.h"

Go to the source code of this file.

Typedefs

typedef double MT_Scalar

Functions

const MT_Scalar MT_DEGS_PER_RAD (57.29577951308232286465)
const MT_Scalar MT_RADS_PER_DEG (0.01745329251994329547)
const MT_Scalar MT_PI (3.14159265358979323846)
const MT_Scalar MT_2_PI (6.28318530717958623200)
const MT_Scalar MT_EPSILON (1.0e-10)
const MT_Scalar MT_EPSILON2 (1.0e-20)
const MT_Scalar MT_INFINITY (1.0e50)
int MT_sign (MT_Scalar x)
MT_Scalar MT_abs (MT_Scalar x)
bool MT_fuzzyZero (MT_Scalar x)
bool MT_fuzzyZero2 (MT_Scalar x)
MT_Scalar MT_radians (MT_Scalar x)
MT_Scalar MT_degrees (MT_Scalar x)
MT_Scalar MT_random ()
MT_Scalar MT_clamp (const MT_Scalar x, const MT_Scalar min, const MT_Scalar max)

Detailed Description

Definition in file MT_Scalar.h.


Typedef Documentation

typedef double MT_Scalar

Definition at line 56 of file MT_Scalar.h.


Function Documentation

const MT_Scalar MT_2_PI ( 6.  28318530717958623200)
MT_Scalar MT_abs ( MT_Scalar  x) [inline]
MT_Scalar MT_clamp ( const MT_Scalar  x,
const MT_Scalar  min,
const MT_Scalar  max 
) [inline]
MT_Scalar MT_degrees ( MT_Scalar  x) [inline]

Definition at line 80 of file MT_Scalar.h.

References MT_DEGS_PER_RAD().

const MT_Scalar MT_DEGS_PER_RAD ( 57.  29577951308232286465)

Referenced by MT_degrees().

const MT_Scalar MT_EPSILON ( 1.0e-  10)
const MT_Scalar MT_EPSILON2 ( 1.0e-  20)

Referenced by MT_fuzzyZero2().

bool MT_fuzzyZero ( MT_Scalar  x) [inline]
bool MT_fuzzyZero2 ( MT_Scalar  x) [inline]

Definition at line 74 of file MT_Scalar.h.

References MT_abs(), and MT_EPSILON2().

Referenced by MT_Vector2::fuzzyZero(), MT_Vector4::fuzzyZero(), and KX_ConstraintActuator::Update().

const MT_Scalar MT_INFINITY ( 1.  0e50)
const MT_Scalar MT_PI ( 3.  14159265358979323846)
MT_Scalar MT_radians ( MT_Scalar  x) [inline]

Definition at line 76 of file MT_Scalar.h.

References MT_RADS_PER_DEG().

Referenced by BL_ConvertSensors(), and KX_RadarSensor::SynchronizeTransform().

const MT_Scalar MT_RADS_PER_DEG ( 0.  01745329251994329547)

Referenced by BL_ConvertActuators(), and MT_radians().

MT_Scalar MT_random ( ) [inline]

Definition at line 84 of file MT_Scalar.h.

References MT_rand(), and MT_RAND_MAX.

Referenced by MT_Vector3::random(), and MT_Quaternion::random().

int MT_sign ( MT_Scalar  x) [inline]

Definition at line 67 of file MT_Scalar.h.