c

namespace math

Include: Math/Decay.h

Classes and Structures

class Matrix A Matrix class.
class Noise1D  
class Noise2D  
class Noise3D  
class VirtualVector  

Functions

void AddDoublePrecross(simul::math::Matrix4x4 M, float f, simul::math::Vector3 v)
void CrossProduct(simul::math::Vector3 result, simul::math::Vector3 v1, simul::math::Vector3 v2)
float DotProduct3(simul::math::Vector3 v1, simul::math::Vector3 v2)
void FirstOrderDecay(float variable, float target, float rate, float dt)
void MatrixToQuaternion(simul::math::Quaternion q, simul::math::Matrix4x4 M)
void Multiply3(simul::math::Vector3 V2, simul::math::Matrix4x4 M, simul::math::Vector3 V1)
void MultiplyAndAdd(simul::math::Vector3 V2, simul::math::Matrix4x4 M, simul::math::Vector3 V1)
void MultiplyAndSubtract(simul::math::Vector3 V2, simul::math::Matrix4x4 M, simul::math::Vector3 V1)
std::ostream & operator«(std::ostream, simul::math::Vector3)
std::istream & operator»(std::istream, simul::math::Vector3)
void Precross(simul::math::Matrix4x4 M, simul::math::Vector3 v)
void SubtractDoublePrecross(simul::math::Matrix4x4 M, float f, simul::math::Vector3 v)

Functions

void AddDoublePrecross(simul::math::Matrix4x4 M, float f, simul::math::Vector3 v)

< Make a unit matrix.

void CrossProduct(simul::math::Vector3 result, simul::math::Vector3 v1, simul::math::Vector3 v2)

Catmull-Rom interpolate with parameter talong a spline formed by vectors x0, x1, x2and x3.

float DotProduct3(simul::math::Vector3 v1, simul::math::Vector3 v2)

Linearly interpolate between two vectors.

void FirstOrderDecay(float variable, float target, float rate, float dt)

Apply a first-order decay to a float variable, based on the timestep dt.

void MatrixToQuaternion(simul::math::Quaternion q, simul::math::Matrix4x4 M)

Assign q to be the Quaternion equivalent to rotation Matrix M. M must be 3 by 3.

void Multiply3(simul::math::Vector3 V2, simul::math::Matrix4x4 M, simul::math::Vector3 V1)

Simply exchange the Y and Z values of a transformation matrix.

void MultiplyAndAdd(simul::math::Vector3 V2, simul::math::Matrix4x4 M, simul::math::Vector3 V1)

< Set the 16 values.

void MultiplyAndSubtract(simul::math::Vector3 V2, simul::math::Matrix4x4 M, simul::math::Vector3 V1)

< Make a unit matrix.

std::ostream & operator«(std::ostream, simul::math::Vector3)

The smallest x y and z of two vectors.

std::istream & operator»(std::istream, simul::math::Vector3)

The largest x y and z of two vectors.

void Precross(simul::math::Matrix4x4 M, simul::math::Vector3 v)

Reverse the Y values of a transformation matrix - i.e. multiply the off-diagonal terms of the second row and column by -1.

void SubtractDoublePrecross(simul::math::Matrix4x4 M, float f, simul::math::Vector3 v)

< Set all values to zero.