object Vector3D
Represents a vector in 3-dimensional Cartesian space.
- Alphabetic
- By Inheritance
- Vector3D
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def create(coord: Coordinate): Vector3D
Creates a vector from a 3D {link Coordinate}.
Creates a vector from a 3D {link Coordinate}. The coordinate should have the X,Y and Z ordinates specified.
- coord
the Coordinate to copy return a new vector
- def create(x: Double, y: Double, z: Double): Vector3D
Creates a new vector with given X, Y and Z components.
Creates a new vector with given X, Y and Z components.
- x
the X component
- y
the Y component
- z
the Z component return a new vector
- def dot(v1: Coordinate, v2: Coordinate): Double
Computes the 3D dot-product of two {link Coordinate}s.
Computes the 3D dot-product of two {link Coordinate}s.
- v1
the first vector
- v2
the second vector return the dot product of the vectors
- def dot(A: Coordinate, B: Coordinate, C: Coordinate, D: Coordinate): Double
Computes the dot product of the 3D vectors AB and CD.
Computes the dot product of the 3D vectors AB and CD.
- A
the start point of the first vector
- B
the end point of the first vector
- C
the start point of the second vector
- D
the end point of the second vector return the dot product
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def length(v: Coordinate): Double
Computes the length of a vector.
Computes the length of a vector.
- v
a coordinate representing a 3D vector return the length of the vector
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def normalize(v: Coordinate): Coordinate
Computes a vector having identical direction but normalized to have length 1.
Computes a vector having identical direction but normalized to have length 1.
- v
a coordinate representing a 3D vector return a coordinate representing the normalized vector
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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()