typings.three.math

Type members

Classlikes

@native @JSType
trait AnonObject91 extends Object
@native @JSImport("three", "Box2") @JSType
class Box2 extends Object
@native @JSImport("three", "Box3") @JSType
class Box3 extends Object
@native @JSImport("three", "Color") @JSType
class Color extends Object
Companion
object
@native @JSImport("three", "Color") @JSType
object Color extends Object
Companion
class
@native @JSImport("three", "Cylindrical") @JSType
class Cylindrical extends Object
@native @JSImport("three", "Euler") @JSType
class Euler extends Object
Companion
object
@native @JSImport("three", "Euler") @JSType
object Euler extends Object
Companion
class
@native @JSImport("three", "Frustum") @JSType
class Frustum extends Object
@native @JSType
trait HSL extends Object
@native @JSImport("three", "Interpolant") @JSType
class Interpolant extends Object
@native @JSImport("three", "Line3") @JSType
class Line3 extends Object
@native @JSType
trait Matrix extends Object
@native @JSImport("three", "Matrix3") @JSType
class Matrix3 extends Matrix
@native @JSImport("three", "Matrix4") @JSType
class Matrix4 extends Matrix
@native @JSImport("three", "Plane") @JSType
class Plane extends Object
@native @JSImport("three", "Quaternion") @JSType
class Quaternion extends Object
Companion
object
@native @JSImport("three", "Quaternion") @JSType
object Quaternion extends Object
Companion
class
@native @JSImport("three", "Ray") @JSType
class Ray extends Object
@native @JSImport("three", "Sphere") @JSType
class Sphere extends Object
@native @JSImport("three", "Spherical") @JSType
class Spherical extends Object
@native @JSImport("three", "SphericalHarmonics3") @JSType
class SphericalHarmonics3 extends Object
Companion
object
@native @JSImport("three", "SphericalHarmonics3") @JSType
object SphericalHarmonics3 extends Object
Companion
class
@native @JSImport("three", "Triangle") @JSType
class Triangle extends Object
Companion
object
@native @JSImport("three", "Triangle") @JSType
object Triangle extends Object
Companion
class
@native @JSType
trait Vector extends Object
@native @JSImport("three", "Vector2") @JSType
class Vector2 extends Vector
@native @JSImport("three", "Vector3") @JSType
class Vector3 extends Vector
@native @JSImport("three", "Vector4") @JSType
class Vector4 extends Vector

Types

type Matrix3Tuple = Array[Double]
type Matrix4Tuple = Array[Double]
type Vector2Tuple = Array[Double]
type Vector3Tuple = Array[Double]
type Vector4Tuple = Array[Double]

Value members

Concrete methods

@native @JSImport("three", "ceilPowerOfTwo")
def ceilPowerOfTwo(value: Double): Double
@native @JSImport("three", "clamp")
def clamp(value: Double, min: Double, max: Double): Double
@native @JSImport("three", "damp")
def damp(x: Double, y: Double, lambda: Double, dt: Double): Double
@native @JSImport("three", "degToRad")
def degToRad(degrees: Double): Double
@native @JSImport("three", "euclideanModulo")
def euclideanModulo(n: Double, m: Double): Double
@native @JSImport("three", "floorPowerOfTwo")
def floorPowerOfTwo(value: Double): Double
@native @JSImport("three", "generateUUID")
def generateUUID(): String
@native @JSImport("three", "inverseLerp")
def inverseLerp(x: Double, y: Double, t: Double): Double
@native @JSImport("three", "isPowerOfTwo")
def isPowerOfTwo(value: Double): Boolean
@native @JSImport("three", "lerp")
def lerp(x: Double, y: Double, t: Double): Double
@native @JSImport("three", "mapLinear")
def mapLinear(x: Double, a1: Double, a2: Double, b1: Double, b2: Double): Double
@native @JSImport("three", "nearestPowerOfTwo")
def nearestPowerOfTwo(value: Double): Double
@native @JSImport("three", "nextPowerOfTwo")
def nextPowerOfTwo(value: Double): Double
@native @JSImport("three", "pingpong")
def pingpong(x: Double, length: UndefOr[Double]): Double
@native @JSImport("three", "radToDeg")
def radToDeg(radians: Double): Double
@native @JSImport("three", "randFloat")
def randFloat(low: Double, high: Double): Double
@native @JSImport("three", "randFloatSpread")
def randFloatSpread(range: Double): Double
@native @JSImport("three", "randInt")
def randInt(low: Double, high: Double): Double
@native @JSImport("three", "random16")
def random16(): Double
@native @JSImport("three", "seededRandom")
def seededRandom(seed: UndefOr[Double]): Double
@native @JSImport("three", "setQuaternionFromProperEuler")
def setQuaternionFromProperEuler(q: Quaternion, a: Double, b: Double, c: Double, order: String): Unit
@native @JSImport("three", "smootherstep")
def smootherstep(x: Double, min: Double, max: Double): Double
@native @JSImport("three", "smoothstep")
def smoothstep(x: Double, min: Double, max: Double): Double

Concrete fields

@native @JSImport("three", "DEG2RAD")
val DEG2RAD: Double
@native @JSImport("three", "RAD2DEG")
val RAD2DEG: Double