maxon Math

Detailed Description

Functions

Float32 Modf (Float32 val, Float32 *intpart)
 
Float64 Modf (Float64 val, Float64 *intpart)
 
Int32 SAFEINT32 (Float32 x)
 
Int32 SAFEINT32 (Float64 x)
 
Int64 SAFEINT64 (Float32 x)
 
Int64 SAFEINT64 (Float64 x)
 
Int SAFEINT (Float64 x)
 
Int SAFEINT (Float32 x)
 

Variables

static constexpr Float64 PI15
 
static constexpr Float64 PI15_INV
 

Function Documentation

◆ Modf() [1/2]

Float32 Modf ( Float32  val,
Float32 *  intpart 
)

◆ Modf() [2/2]

Float64 Modf ( Float64  val,
Float64 *  intpart 
)

◆ SAFEINT32() [1/2]

Int32 SAFEINT32 ( Float32  x)

Safely converts a 32 bit float value into Int32. The resulting value will be clipped against the Int32 boundaries, without raising an exception.

◆ SAFEINT32() [2/2]

Int32 SAFEINT32 ( Float64  x)

Safely converts a 64 bit float value into Int32. The resulting value will be clipped against the Int32 boundaries, without raising an exception.

◆ SAFEINT64() [1/2]

Int64 SAFEINT64 ( Float32  x)

Safely converts a 32 bit float value into Int64. The resulting value will be clipped against the Int64 boundaries, without raising an exception.

◆ SAFEINT64() [2/2]

Int64 SAFEINT64 ( Float64  x)

Safely converts a 64 bit float value into Int64. The resulting value will be clipped against the Int64 boundaries, without raising an exception

◆ SAFEINT() [1/2]

Int SAFEINT ( Float64  x)

Safely converts a 64 bit float value into Int. The resulting value will be clipped against the Int boundaries, without raising an exception

◆ SAFEINT() [2/2]

Int SAFEINT ( Float32  x)

Safely converts a 32 bit float value into Int. The resulting value will be clipped against the Int boundaries, without raising an exception

Variable Documentation

◆ PI15

constexpr Float64 PI15
staticconstexpr

floating point constant: 1.5 * PI

◆ PI15_INV

constexpr Float64 PI15_INV
staticconstexpr

floating point constant: 1.0 / (1.5 * PI)