具有多个数学实用函数的对象。
[page:Float value] — 需要clamp处理的值。
[page:Float min] — 最小值。
[page:Float max] — 最大值。
限制数值[page:Float value]处于最小值[page:Float min]和最大值[page:Float max]之间。
将度转化为弧度。
[page:Integer n], [page:Integer m] - 整型
计算 [page:Integer m] % [page:Integer n] 的欧几里得模:
( ( n % m ) + m ) % m
创建一个全局唯一标识符 [link:https://en.wikipedia.org/wiki/Universally_unique_identifier UUID]。
如果 [page:Number n] 是2的幂,返回true。
[page:Float x] - Start point.
[page:Float y] - End point.
[page:Float value] - A value between start and end.
Returns the percentage in the closed interval [0, 1] of the given value between the start and end point.
[page:Float x] - 起始点。
[page:Float y] - 终点。
[page:Float t] - 闭区间 [0,1] 内的插值因子。
返回给定区间的线性插值[link:https://en.wikipedia.org/wiki/Linear_interpolation linearly interpolated]结果 - [page:Float t] = 0 将会返回 [page:Float x]
如果 [page:Float t] = 1 将会返回 [page:Float y].
[page:Float x] - Current point.
[page:Float y] - Target point.
[page:Float lambda] - A higher lambda value will make the movement more sudden, and a lower value will make the movement more gradual.
[page:Float dt] - Delta time in seconds.
Smoothly interpolate a number from [page:Float x] toward [page:Float y] in a spring-like manner using the [page:Float dt] to maintain frame rate independent movement.
For details, see [link:http://www.rorydriscoll.com/2016/03/07/frame-rate-independent-damping-using-lerp/ Frame rate independent damping using lerp].
[page:Float x] — 用于映射的值。
[page:Float a1] — A区间最小值。
[page:Float a2] — A区间最大值。
[page:Float b1] — B区间最小值。
[page:Float b2] — A区间最大值。
x从范围[[page:Float a1], [page:Float a2]] 到范围[[page:Float b1], [page:Float b2]]的线性映射。
[page:Float x] — The value to pingpong.
[page:Float length] — The positive value the function will pingpong to. Default is 1.
Returns a value that alternates between 0 and [param:Float length].
返回大于等于 [page:Number n] 的2的最小次幂。
返回小于等于 [page:Number n] 的2的最大幂。
将弧度转换为角度。
在区间 [[page:Float low], [page:Float high]] 内随机一个浮点数。
在区间 [- [page:Float range] / 2, [page:Float range] / 2] 内随机一个浮点数。
在区间 [[page:Float low], [page:Float high]] 内随机一个整数。
在区间 [0, 1] 中生成确定性的伪随机浮点数。 整数种子是可选的。
[page:Float x] - 根据其在最小值和最大值之间的位置来计算的值。
[page:Float min] - 任何x比最小值还小会返回0.
[page:Float max] - 任何x比最大值还大会返回1.
返回0-1之间的值,该值表示x在最小值和最大值之间移动的百分比,但是当x接近最小值和最大值时,变化程度会平滑或减慢。
查看更多详情请移步到 [link:http://en.wikipedia.org/wiki/Smoothstep Smoothstep] 。
[page:Float x] - 根据其在最小值和最大值之间的位置来计算的值。
[page:Float min] - 任何x比最小值还小会返回0.
[page:Float max] - 任何x比最大值还大会返回0.
返回一个0-1之间的值。它和smoothstep相同,但变动更平缓。[link:https://en.wikipedia.org/wiki/Smoothstep#Variations variation on smoothstep] 在x=0和x=1处有0阶和二阶导数。
[page:Quaternion q] - the quaternion to be set
[page:Float a] - the rotation applied to the first axis, in radians
[page:Float b] - the rotation applied to the second axis, in radians
[page:Float c] - the rotation applied to the third axis, in radians
[page:String order] - a string specifying the axes order: 'XYX', 'XZX', 'YXY', 'YZY', 'ZXZ', or 'ZYZ'
Sets quaternion [page:Quaternion q] from the [link:http://en.wikipedia.org/wiki/Euler_angles intrinsic Proper Euler Angles] defined by angles [page:Float a], [page:Float b], and [page:Float c], and order [page:String order].
Rotations are applied to the axes in the order specified by [page:String order]: rotation by angle [page:Float a] is applied first, then by angle [page:Float b], then by angle [page:Float c]. Angles are in radians.
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]