Sdk math api documentation

Math functions.

Namespace: dmMath
Include: #include <dmsdk/dlib/math.h>
FUNCTIONS
class T Abs( [type:class) Abs function
class T Min( [type:class,  [type:class) Min function
class T Select( [type:class,  [type:class,  [type:class) Select one of two values

Functions

Abs

class T Abs( [type:class)

Abs function

PARAMETERS

[type:class T] x

RETURNS

class T Absolute value of x

Min

class T Min( [type:class,  [type:class)

Min function

PARAMETERS

[type:class T] a Value a
[type:class T] b Value b

RETURNS

class T Min of a and b

Select

class T Select( [type:class,  [type:class,  [type:class)

Select one of two values depending on the sign of another.

PARAMETERS

[type:class T] x Value to test for positiveness
[type:class T] a Result if test succeeded
[type:class T] b Result if test failed

RETURNS

class T a when x >= 0, b otherwise