`#include <ddgutil.h>`

## Static Public Members | |||

float | clamp (float v, float a,float b) | ||

return the clamped value of v so that v lies between a and b. | |||

float | linterp (float a, float b, float x) | ||

Linearly interpolate a value between a and b for x where v = 0->1. | |||

float | binterp (float a, float b, float x) | ||

Smooth binlinear interpolation from a to b. | |||

float | einterp (float a, float b, float x) | ||

Exponential interpolation from a to b. | |||

float | cinterp (float a, float b, float x) | ||

Cosine interpolation from a to b. Goes from a->b->a. | |||

float | wrap ( float v, float a, float b) | ||

Wrap value v if outside of a or b. | |||

float | diff ( float v1, float v2) | ||

A difference between two float values. | |||

float | idiff ( float v1, float v2) | ||

A difference between two integer values. | |||

float | max ( float v1, float v2) | ||

The max of two float values. | |||

float | min ( float v1, float v2) | ||

The min of two float values. | |||

float | abs ( float v1) | ||

The min of two float values. | |||

bool | DetectSIMD (void) | ||

Detect if we have SIMD instructions. |

Uses Angle class.

The documentation for this class was generated from the following files:

- ddgutil.h
- ddgutil.cpp

Generated at Sun Sep 17 19:27:57 2000 for Digital Dawn Graphics Toolkit by 0.49-991205 written by Dimitri van Heesch, © 1997-1999