class Vector3 extends Object with Vector
- Annotations
- @JSType() @native() @JSImport("three", "Vector3", "Three.Vector3")
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Vector3
- Vector
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Vector3(x: Double = js.native, y: Double = js.native, z: Double = js.native)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def add(a: Vector3): Vector3
- def add(v: Vector): Vector
- Definition Classes
- Vector
- def addScalar(s: Double): Vector3
- def addVectors(a: Vector3, b: Vector3): Vector3
- def addVectors(a: Vector, b: Vector): Vector
- Definition Classes
- Vector
- def angleTo(v: Vector3): Double
- def applyAxisAngle(axis: Vector3, angle: Double): Vector3
- def applyEuler(euler: Euler): Vector3
- def applyMatrix3(m: Matrix3): Vector3
- def applyMatrix4(m: Matrix4): Vector3
- def applyProjection(m: Matrix4): Vector3
- def applyQuaternion(q: Quaternion): Vector3
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def ceil(): Vector3
- def clamp(min: Vector3, max: Vector3): Vector3
- def clampScalar(min: Double, max: Double): Vector3
- def clone(): Vector3
- def copy(v: Vector3): Vector3
- def copy(v: Vector): Vector
- Definition Classes
- Vector
- def cross(a: Vector3): Vector3
- def crossVectors(a: Vector3, b: Vector3): Vector3
- def distanceTo(v: Vector3): Double
- def distanceTo(v: Vector): Double
- Definition Classes
- Vector
- def distanceToSquared(v: Vector3): Double
- def distanceToSquared(v: Vector): Double
- Definition Classes
- Vector
- def divide(v: Vector3): Vector3
- def divideScalar(s: Double): Vector3
- def dot(v: Vector3): Double
- def dot(v: Vector): Double
- Definition Classes
- Vector
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(v: Vector3): Boolean
- def equals(v: Vector): Boolean
- Definition Classes
- Vector
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def floor(): Vector3
- def fromArray(xyz: Array[Double]): Vector3
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getComponent(index: Double): Double
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- def length(): Double
- def lengthManhattan(): Double
- def lengthSq(): Double
- def lerp(v: Vector3, alpha: Double): Vector3
- def lerp(v: Vector, alpha: Double): Vector
- Definition Classes
- Vector
- def max(v: Vector3): Vector3
- def min(v: Vector3): Vector3
- def multiply(v: Vector3): Vector3
- def multiplyScalar(s: Double): Vector3
- def multiplyVectors(a: Vector3, b: Vector3): Vector3
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def negate(): Vector3
- def normalize(): Vector3
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def project(camera: Camera): Vector3
- def projectOnPlane(planeNormal: Vector3): Vector3
- def projectOnVector(v: Vector3): Vector3
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- def reflect(vector: Vector3): Vector3
- def round(): Vector3
- def roundToZero(): Vector3
- def set(x: Double, y: Double, z: Double): Vector3
- def setComponent(index: Double, value: Double): Unit
- def setFromMatrixColumn(matrix: Matrix4, index: Double): Vector3
- def setFromMatrixPosition(m: Matrix4): Vector3
- def setFromMatrixScale(m: Matrix4): Vector3
- def setFromSpherical(s: Spherical): Vector3
- def setLength(l: Double): Vector3
- def setX(x: Double): Vector3
- def setY(y: Double): Vector3
- def setZ(z: Double): Vector3
- def sub(a: Vector3): Vector3
- def sub(v: Vector): Vector
- Definition Classes
- Vector
- def subVectors(a: Vector3, b: Vector3): Vector3
- def subVectors(a: Vector, b: Vector): Vector
- Definition Classes
- Vector
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toArray(): Array[Double]
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- def transformDirection(m: Matrix4): Vector3
- def unproject(camera: Camera): Vector3
- def valueOf(): Any
- Definition Classes
- Object
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- var x: Double
- var y: Double
- var z: Double