-
首页
-
C4D R23.110 C++ SDK
ge_sys_math.h File Reference
函数
|
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 >
|
T
|
Mod
(T a, U b)
|
Macro Definition Documentation
◆
CINEWARE_NAMESPACE
#define CINEWARE_NAMESPACE
|
◆
CINEWARE_SINGLEINHERITANCE
#define CINEWARE_SINGLEINHERITANCE
|
◆
TRUE
◆
FALSE
◆
NULL
◆
NOTOK
Typedef Documentation
◆
Hndl
◆
INT
◆
UINT
typedef unsigned int
UINT
|
◆
Bool
◆
Char
◆
UChar
◆
Int16
◆
UInt16
◆
Int32
◆
UInt32
◆
Int64
◆
UInt64
◆
Int
◆
UInt
◆
Float
◆
Float64
◆
Float32
◆
Utf32Char
32 bit unicode (UTF-32) character.
-
注意
-
This is the datatype for a single 32 bit unicode character.
-
由于
-
R17.032
◆
Utf16Char
16 bit unicode character.
-
注意
-
Complex unicodes can be composed of two individual 16 bit characters.
-
由于
-
R17.032
Function Documentation
◆
FMin()
[1/2]
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]
Gets the minimum of two float values.
Double-precision version.
-
参数
-
[in]
|
a
|
The first value.
|
[in]
|
b
|
The second value.
|
-
返回
-
The minimum value.
◆
LMin()
Gets the minimum of two integer values.
Single-precision version.
-
参数
-
[in]
|
a
|
The first value.
|
[in]
|
b
|
The second value.
|
-
返回
-
The minimum value.
◆
VMin()
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]
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]
Gets the maximum of two float values.
Double-precision version.
-
参数
-
[in]
|
a
|
The first value.
|
[in]
|
b
|
The second value.
|
-
返回
-
The minimum value.
◆
LMax()
Gets the maximum of two integer values.
Single-precision version.
-
参数
-
[in]
|
a
|
The first value.
|
[in]
|
b
|
The second value.
|
-
返回
-
The minimum value.
◆
VMax()
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()
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()
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()
Calculates the sign of a value.
-
参数
-
-
返回
-
1
if the passed value is
0
or positive, otherwise
-1
.
◆
Mod()
Calculates
a
modulo
b
.
-
参数
-
[in]
|
a
|
The dividend.
|
[in]
|
b
|
The divisor.
|
-
返回
-
The remainder.