HISE Docs

hmath

This class holds all math functions available in SNEX.

Static functions

sign

double sign(double value)

Calculates the sign of a number.

abs

double abs(double value)

Calculates the absolute value of a number.

round

double round(double value)

Rounds the value to the next multiple of 1.

range

double range(double value, double lower, double upper)

Clamps the value between a lower and upper limit.

min

double min(double value1, double value2)

Returns the smaller value.

max

double max(double value1, double value2)

Returns the bigger value.

randomDouble

double randomDouble()

Generates a double precision random number.