Namespace THREE.Math
Defined in: Math.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
THREE.Math.clamp(x, a, b)
|
<static> |
THREE.Math.clampBottom(x, a)
|
<static> |
THREE.Math.mapLinear(x, a1, a2, b1, b2)
|
<static> |
THREE.Math.randFloat(low, high)
|
<static> |
THREE.Math.randFloatSpread(range)
|
<static> |
THREE.Math.randInt(low, high)
|
<static> |
THREE.Math.random16()
|
<static> |
THREE.Math.sign(x)
|
Method Detail
<static>
THREE.Math.clamp(x, a, b)
- Parameters:
- x
- a
- b
<static>
THREE.Math.clampBottom(x, a)
- Parameters:
- x
- a
<static>
THREE.Math.mapLinear(x, a1, a2, b1, b2)
- Parameters:
- x
- a1
- a2
- b1
- b2
<static>
THREE.Math.randFloat(low, high)
- Parameters:
- low
- high
<static>
THREE.Math.randFloatSpread(range)
- Parameters:
- range
<static>
THREE.Math.randInt(low, high)
- Parameters:
- low
- high
<static>
THREE.Math.random16()
<static>
THREE.Math.sign(x)
- Parameters:
- x