ge_sys_math.h File Reference

Macros

#define TRUE
 
#define FALSE
 
#define NULL
 
#define NOTOK
 

Typedefs

typedef void * Hndl
 
typedef int INT
 
typedef unsigned int UINT
 
typedef maxon::Bool Bool
 
typedef maxon::Char Char
 
typedef maxon::UChar UChar
 
typedef maxon::Int16 Int16
 
typedef maxon::UInt16 UInt16
 
typedef maxon::Int32 Int32
 
typedef maxon::UInt32 UInt32
 
typedef maxon::Int64 Int64
 
typedef maxon::UInt64 UInt64
 
typedef maxon::Int Int
 
typedef maxon::UInt UInt
 
typedef maxon::Float Float
 
typedef maxon::Float64 Float64
 
typedef maxon::Float32 Float32
 
typedef maxon::Utf32Char Utf32Char
 
typedef maxon::Utf16Char Utf16Char
 

Functions

Float32 FMin (Float32 a, Float32 b)
 
Float64 FMin (Float64 a, Float64 b)
 
Int32 LMin (Int32 a, Int32 b)
 
Int VMin (Int a, Int b)
 
Float32 FMax (Float32 a, Float32 b)
 
Float64 FMax (Float64 a, Float64 b)
 
Int32 LMax (Int32 a, Int32 b)
 
Int VMax (Int a, Int b)
 
Int32 LCut (Int32 a, Int32 b, Int32 c)
 
Int VCut (Int a, Int b, Int c)
 
template<typename X >
Int Sign (X f)
 
template<typename T , typename U >
Mod (T a, U b)
 

Variables

static const Float EPSILON
 
static const Float EPSILON2
 
static const Float EPSILON3
 
static const Float EPSILON5
 
static const Float EPSILON6
 
static const Float EPSILON7
 
static const Float EPSILON8
 
static const Float EPSILON10
 

Macro Definition Documentation

◆ TRUE

#define TRUE

◆ FALSE

#define FALSE

◆ NULL

#define NULL

◆ NOTOK

#define NOTOK

Typedef Documentation

◆ Hndl

typedef void* Hndl

◆ INT

typedef int INT

◆ UINT

typedef unsigned int UINT

◆ Bool

typedef maxon::Bool Bool

◆ Char

typedef maxon::Char Char

◆ UChar

◆ Int16

◆ UInt16

◆ Int32

◆ UInt32

◆ Int64

◆ UInt64

◆ Int

typedef maxon::Int Int

◆ UInt

typedef maxon::UInt UInt

◆ Float

◆ Float64

◆ Float32

◆ Utf32Char

32 bit unicode (UTF-32) character.

Note
This is the datatype for a single 32 bit unicode character.
Since
R17.032

◆ Utf16Char

16 bit unicode character.

Note
Complex unicodes can be composed of two individual 16 bit characters.
Since
R17.032

Function Documentation

◆ FMin() [1/2]

Float32 FMin ( Float32  a,
Float32  b 
)

Gets the minimum of two float values.
Single-precision version.

Parameters
[in]aThe first value.
[in]bThe second value.
Returns
The minimum value.

◆ FMin() [2/2]

Float64 FMin ( Float64  a,
Float64  b 
)

Gets the minimum of two float values.
Double-precision version.

Parameters
[in]aThe first value.
[in]bThe second value.
Returns
The minimum value.

◆ LMin()

Int32 LMin ( Int32  a,
Int32  b 
)

Gets the minimum of two integer values.
Single-precision version.

Parameters
[in]aThe first value.
[in]bThe second value.
Returns
The minimum value.

◆ VMin()

Int VMin ( Int  a,
Int  b 
)

Gets the minimum of two integer values.
Double-precision version on 64-bit systems.

Parameters
[in]aThe first value.
[in]bThe second value.
Returns
The minimum value.

◆ FMax() [1/2]

Float32 FMax ( Float32  a,
Float32  b 
)

Gets the maximum of two float values.
Single-precision version.

Parameters
[in]aThe first value.
[in]bThe second value.
Returns
The minimum value.

◆ FMax() [2/2]

Float64 FMax ( Float64  a,
Float64  b 
)

Gets the maximum of two float values.
Double-precision version.

Parameters
[in]aThe first value.
[in]bThe second value.
Returns
The minimum value.

◆ LMax()

Int32 LMax ( Int32  a,
Int32  b 
)

Gets the maximum of two integer values.
Single-precision version.

Parameters
[in]aThe first value.
[in]bThe second value.
Returns
The minimum value.

◆ VMax()

Int VMax ( Int  a,
Int  b 
)

Gets the maximum of two integer values.
Double-precision version on 64-bit systems.

Parameters
[in]aThe first value.
[in]bThe second value.
Returns
The minimum value.

◆ LCut()

Int32 LCut ( Int32  a,
Int32  b,
Int32  c 
)

Limits the value of a between b and c.
Single-precision version.

Parameters
[in]aThe value.
[in]bThe lower bound.
[in]cThe upper bound.
Returns
b if a < b, c if a > c, otherwise a.

◆ VCut()

Int VCut ( Int  a,
Int  b,
Int  c 
)

Limits the value of a between b and c.
Double-precision version on 64-bit systems.

Parameters
[in]aThe value.
[in]bThe lower bound.
[in]cThe upper bound.
Returns
b if a < b, c if a > c, otherwise a.

◆ Sign()

Int Sign ( f)

Calculates the sign of a value.

Parameters
[in]fThe value.
Returns
1 if the passed value is 0 or positive, otherwise -1.

◆ Mod()

T Mod ( a,
b 
)

Calculates a modulo b.

Parameters
[in]aThe dividend.
[in]bThe divisor.
Returns
The remainder.