crymath

crymath Namespace Reference

Functions

template
ILINE T clamp (T val, T lo, T hi)
template
ILINE T saturate (T val)
template
ILINE T asin (T op)
template
ILINE T acos (T op)
template
ILINE void sincos (T angle, T *pSin, T *pCos)
ILINE f32 rcp (f32 op)
ILINE f32 rcp_fast (f32 op)
ILINE f32 sqrt_fast (f32 op)
ILINE f32 rsqrt (f32 op)
ILINE f32 rsqrt_fast (f32 op)
ILINE f64 rcp (f64 op)
ILINE f64 rsqrt (f64 op)
ILINE f32 rcp_safe (f32 op)
ILINE f64 rcp_safe (f64 op)
ILINE f32 rsqrt_safe (f32 op)
ILINE f64 rsqrt_safe (f64 op)
ILINE int32 signnz (int32 op)
ILINE int64 signnz (int64 op)
ILINE f32 signnz (f32 op)
ILINE f64 signnz (f64 op)
ILINE int32 sign (int32 op)
ILINE int64 sign (int64 op)
ILINE f32 sign (f32 op)
ILINE f64 sign (f64 op)
template
ILINE T hsum (T v)
template
ILINE T hmin (T v)
template
ILINE T hmax (T v)
template
ILINE T mod (T a, T b)
template
ILINE T frac (T val)
template
ILINE T wrap (T f, T lo, T hi)
template
ILINE int solve_quadratic (T a, T b, T c, T x[2])
template
float solve_quadratic_in_range (T a, T b, T c, T lo, T hi)

Detailed Description

Create namespace for standard math functions, imported from std, and our extended versions. SSE versions implemented in Cry_Math_SSE.h