Packages

object Vector3D

Represents a vector in 3-dimensional Cartesian space.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Vector3D
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. 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

  7. 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

  8. 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

  9. 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

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. 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

  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. 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

  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped