The Nebula Device 3: C:/nebula3/code/foundation/math/d3dx9/d3dx9_scalar.h File Reference

The Nebula Device 3

C:/nebula3/code/foundation/math/d3dx9/d3dx9_scalar.h File Reference


Detailed Description

Scalar typedef and math functions for D3DX9 math functions.

(C) 2007 Radon Labs GmbH

#include "core/types.h"


Namespaces

namespace  Math

Functions

__forceinline scalar Math::n_log2 (scalar f)
__forceinline int Math::n_iclamp (int val, int minVal, int maxVal)
__forceinline bool Math::n_fequal (scalar f0, scalar f1, scalar tol)
__forceinline bool Math::n_fless (scalar f0, scalar f1, scalar tol)
__forceinline bool Math::n_fgreater (scalar f0, scalar f1, scalar tol)
__forceinline scalar Math::n_smooth (scalar newVal, scalar curVal, scalar maxChange)
__forceinline scalar Math::n_clamp (scalar val, scalar lower, scalar upper)
__forceinline scalar Math::n_saturate (scalar val)
__forceinline scalar Math::n_rand ()
__forceinline scalar Math::n_rand (scalar min, scalar max)
__forceinline int Math::n_fchop (scalar f)
__forceinline int Math::n_frnd (scalar f)
__forceinline float Math::n_lerp (scalar x, scalar y, scalar l)
__forceinline scalar Math::n_modangle (scalar a)
__forceinline scalar Math::n_angulardistance (scalar from, scalar to)