ge_sys_math.h File Reference

Macros

#define  CINEWARE_NAMESPACE
#define  CINEWARE_SINGLEINHERITANCE
#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

函数

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)

变量

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

◆  CINEWARE_NAMESPACE

#define CINEWARE_NAMESPACE

◆  CINEWARE_SINGLEINHERITANCE

#define CINEWARE_SINGLEINHERITANCE

◆  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

typedef maxon::UChar UChar

◆  Int16

typedef maxon::Int16 Int16

◆  UInt16

typedef maxon::UInt16 UInt16

◆  Int32

typedef maxon::Int32 Int32

◆  UInt32

typedef maxon::UInt32 UInt32

◆  Int64

typedef maxon::Int64 Int64

◆  UInt64

typedef maxon::UInt64 UInt64

◆  Int

typedef maxon::Int Int

◆  UInt

typedef maxon::UInt UInt

◆  Float

typedef maxon::Float Float

◆  Float64

typedef maxon::Float64 Float64

◆  Float32

typedef maxon::Float32 Float32

◆  Utf32Char

typedef maxon::Utf32Char Utf32Char

32 bit unicode (UTF-32) character.

注意
This is the datatype for a single 32 bit unicode character.
由于
R17.032

◆  Utf16Char

typedef maxon::Utf16Char Utf16Char

16 bit unicode character.

注意
Complex unicodes can be composed of two individual 16 bit characters.
由于
R17.032

Function Documentation

◆  FMin() [1/2]

Float32 FMin ( Float32   a ,
Float32   b  
)

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

参数
[in] a The first value.
[in] b The second value.
返回
The minimum value.

◆  FMin() [2/2]

Float64 FMin ( Float64   a ,
Float64   b  
)

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

参数
[in] a The first value.
[in] b The second value.
返回
The minimum value.

◆  LMin()

Int32 LMin ( Int32   a ,
Int32   b  
)

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

参数
[in] a The first value.
[in] b The second value.
返回
The minimum value.

◆  VMin()

Int VMin ( Int   a ,
Int   b  
)

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

参数
[in] a The first value.
[in] b The second value.
返回
The minimum value.

◆  FMax() [1/2]

Float32 FMax ( Float32   a ,
Float32   b  
)

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

参数
[in] a The first value.
[in] b The second value.
返回
The minimum value.

◆  FMax() [2/2]

Float64 FMax ( Float64   a ,
Float64   b  
)

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

参数
[in] a The first value.
[in] b The second value.
返回
The minimum value.

◆  LMax()

Int32 LMax ( Int32   a ,
Int32   b  
)

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

参数
[in] a The first value.
[in] b The second value.
返回
The minimum value.

◆  VMax()

Int VMax ( Int   a ,
Int   b  
)

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

参数
[in] a The first value.
[in] b The second value.
返回
The minimum value.

◆  LCut()

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

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

参数
[in] a The value.
[in] b The lower bound.
[in] c The upper bound.
返回
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.

参数
[in] a The value.
[in] b The lower bound.
[in] c The upper bound.
返回
b if a < b , c if a > c , otherwise a .

◆  Sign()

Int Sign ( f )

Calculates the sign of a value.

参数
[in] f The value.
返回
1 if the passed value is 0 or positive, otherwise -1 .

◆  Mod()

T Mod ( a ,
b  
)

Calculates a modulo b .

参数
[in] a The dividend.
[in] b The divisor.
返回
The remainder.