详细描述
函数
|
Float64
|
StepEx
(
Float64
a,
Float64
x)
|
Float32
|
Boxstep
(
Float32
a,
Float32
b,
Float32
x)
|
Float64
|
Boxstep
(
Float64
a,
Float64
b,
Float64
x)
|
Float32
|
Smoothstep
(
Float32
a,
Float32
b,
Float32
x)
|
Float64
|
Smoothstep
(
Float64
a,
Float64
b,
Float64
x)
|
Float32
|
Modulo
(
Float32
a,
Float32
b)
|
Float64
|
Modulo
(
Float64
a,
Float64
b)
|
Int32
|
LModulo
(
Int32
a,
Int32
b)
|
Int64
|
LModulo
(
Int64
a,
Int64
b)
|
Float32
|
Bias
(
Float32
b,
Float32
x)
|
Float64
|
Bias
(
Float64
b,
Float64
x)
|
Float32
|
Truncate
(
Float32
x)
|
Float64
|
Truncate
(
Float64
x)
|
Function Documentation
◆
StepEx()
返回
1.0
if
x
is greater than or equal to
a
, else
0.0
.
-
参数
-
[in]
|
a
|
A double-precision floating point value.
|
[in]
|
x
|
A double-precision floating point value.
|
-
返回
-
The step value (
0.0
or
1.0
).
◆
Boxstep()
[1/2]
返回
0.0
if
x
is less than
a
and
1.0
if
x
大于
b
, else returns
x
mapped on the range [
a
,
b
].
-
参数
-
[in]
|
a
|
A single-precision floating point value.
|
[in]
|
b
|
A single-precision floating point value.
|
[in]
|
x
|
A single-precision floating point value.
|
-
返回
-
The box stepped value between
0.0
and
1.0
.
◆
Boxstep()
[2/2]
返回
0.0
if
x
is less than
a
and
1.0
if
x
大于
b
, else returns
x
mapped on the range [
a
,
b
].
-
参数
-
[in]
|
a
|
A double-precision floating point value.
|
[in]
|
b
|
A double-precision floating point value.
|
[in]
|
x
|
A double-precision floating point value.
|
-
返回
-
The box stepped value between
0.0
and
1.0
.
◆
Smoothstep()
[1/2]
返回
0.0
if
x
is less than
a
and
1.0
if
x
大于
b
, else returns
x
mapped on the range [
a
,
b
].
-
注意
-
The mapping is smoothed using an ease-in/ease-out curve.
-
参数
-
[in]
|
a
|
A single-precision floating point value.
|
[in]
|
b
|
A single-precision floating point value.
|
[in]
|
x
|
A single-precision floating point value.
|
-
返回
-
The smoothed stepped value between
0.0
and
1.0
.
◆
Smoothstep()
[2/2]
返回
0.0
if
x
is less than
a
and
1.0
if
x
大于
b
, else returns
x
mapped on the range [
a
,
b
].
-
注意
-
The mapping is smoothed using an ease-in/ease-out curve.
-
参数
-
[in]
|
a
|
A double-precision floating point value.
|
[in]
|
b
|
A double-precision floating point value.
|
[in]
|
x
|
A double-precision floating point value.
|
-
返回
-
The smoothed stepped value between
0.0
and
1.0
.
◆
Modulo()
[1/2]
返回
a
modulo
b
.
-
参数
-
[in]
|
a
|
A single-precision floating point value.
|
[in]
|
b
|
A single-precision floating point value.
|
-
返回
-
The modulo value.
◆
Modulo()
[2/2]
返回
a
modulo
b
.
-
参数
-
[in]
|
a
|
A double-precision floating point value.
|
[in]
|
b
|
A double-precision floating point value.
|
-
返回
-
The modulo value.
◆
LModulo()
[1/2]
返回
a
modulo
b
(integer modulo).
-
参数
-
[in]
|
a
|
A 32-bit integer value.
|
[in]
|
b
|
A 32-bit integer value.
|
-
返回
-
The modulo value.
◆
LModulo()
[2/2]
返回
a
modulo
b
(integer modulo).
-
参数
-
[in]
|
a
|
A 64-bit integer value.
|
[in]
|
b
|
A 64-bit integer value.
|
-
返回
-
The modulo value.
◆
Bias()
[1/2]
Returns the bias as the defined in the book
"Texturing and Modeling"
by Ebert.
-
参数
-
[in]
|
b
|
The bias value.
|
[in]
|
x
|
A single-precision floating point value.
|
-
返回
-
The bias value.
◆
Bias()
[2/2]
Returns the bias as the defined in the book
"Texturing and Modeling"
by Ebert.
-
参数
-
[in]
|
b
|
The bias value.
|
[in]
|
x
|
A double-precision floating point value.
|
-
返回
-
The bias value.
◆
Truncate()
[1/2]
Returns the next integer value towards zero.
-
参数
-
[in]
|
x
|
The 32-bit floating point value to truncate.
|
-
返回
-
The truncated value.
◆
Truncate()
[2/2]
Returns the next integer value towards zero.
-
参数
-
[in]
|
x
|
The 64-bit floating point value to truncate.
|
-
返回
-
The truncated value.