The Nebula Device 3: c:/nebula3/code/foundation/math/scalar.h File Reference

The Nebula Device 3

c:/nebula3/code/foundation/math/scalar.h File Reference


Detailed Description

Nebula's scalar datatype.

NOTE: do not add CRT math function calls to this call, but instead into the platform specific headers (for instance, on the Wii the sinf() functions are called and must be placed into a .cc file, not into the header.

(C) 2007 Radon Labs GmbH

#include "math/xnamath/xna_scalar.h"


Namespaces

namespace  Math

Functions

__forceinline bool Math::n_fequal (scalar f0, scalar f1, scalar tol)
__forceinline int Math::n_iclamp (int val, int minVal, int maxVal)
__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_clamp (scalar val, scalar lower, scalar upper)
__forceinline scalar Math::n_saturate (scalar val)
__forceinline double Math::n_saturate (double val)
__forceinline scalar Math::n_lerp (scalar x, scalar y, scalar l)
__forceinline double Math::n_lerp (double x, double y, double l)
__forceinline scalar Math::n_angulardistance (scalar from, scalar to)
__forceinline bool Math::n_isdenormal (scalar s)
__forceinline float Math::n_undenormalize (scalar s)
__forceinline bool Math::n_nearequal (scalar a, scalar b, scalar epsilon)