Packages

class Vector3D extends PhysicalVector with PhysicalVectorOps[Vector3D]

Simple 3 dimensional vector class. Objective is to keep this class concise and fast. Standard operations are defined such as vectorial summation and subtraction , scala multiplication/division/summation7subtraction and operations like normalization, dot product, etc.

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Vector3D
  2. PhysicalVectorOps
  3. PhysicalVector
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Vector3D(X: Double, Y: Double, Z: Double)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def *(i: Double): Vector3D

    Scalar multiplication.

    Scalar multiplication. Multiples both components by the argument.

    returns

    PhysicalVector after the multiplication

    Definition Classes
    Vector3DPhysicalVectorOps
  4. def +(i: Double): Vector3D

    Scalar summation.

    Scalar summation. Adds a scala to both components.

    returns

    PhysicalVector of the sum

    Definition Classes
    Vector3DPhysicalVectorOps
  5. def +(that: Vector3D): Vector3D

    summation of two PhysicalVector

    summation of two PhysicalVector

    that

    the other to sum

    returns

    PhysicalVector equal to the sum of both vectors

    Definition Classes
    Vector3DPhysicalVectorOps
  6. def -(i: Double): Vector3D

    Scalar subtraction.

    Scalar subtraction. Removes the argument from this vector

    returns

    the difference between this and that scalar

    Definition Classes
    Vector3DPhysicalVectorOps
  7. def -(that: Vector3D): Vector3D

    Subtraction of a Vector2D from this vector.

    Subtraction of a Vector2D from this vector.

    that

    the Vector2D to subtract from this vector

    returns

    the result of this minus that

    Definition Classes
    Vector3DPhysicalVectorOps
  8. def /(i: Double): Vector3D

    Division by a scalar.

    Division by a scalar.

    returns

    result from the division

    Definition Classes
    Vector3DPhysicalVectorOps
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. val X: Double
  11. val Y: Double
  12. val Z: Double
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def canEqual(other: Any): Boolean

    Checks whether we are allowed to compare this object to another

    Checks whether we are allowed to compare this object to another

    other

    Vector to compare to

    Definition Classes
    Vector3DPhysicalVectorOps
  15. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  16. def distanceTo(that: Vector3D): Double

    Computes the distance between this and that assuming both PhysicalVector represent points.

    Computes the distance between this and that assuming both PhysicalVector represent points.

    that

    point to compute the distance to

    returns

    L2 distance between both points

    Definition Classes
    Vector3DPhysicalVectorOps
  17. def dot(that: Vector3D): Double

    Copmutes the dot product between both vectors.

    Copmutes the dot product between both vectors.

    that

    PhysicalVector to compute the dot product with

    returns

    dot product between both vectors

    Definition Classes
    Vector3DPhysicalVectorOps
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(other: Any): Boolean

    Checks whether another object equals this one

    Checks whether another object equals this one

    other

    another object to test equality for

    returns

    boolean indicating if the two objects are the same

    Definition Classes
    Vector3DPhysicalVectorOps → AnyRef → Any
  20. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. def hashCode: Int

    Definition of equality.

    Definition of equality.

    returns

    Int representing the object

    Definition Classes
    Vector3DPhysicalVectorOps → AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. def norm: Double

    Computes the L2 norm of this vector.

    Computes the L2 norm of this vector.

    returns

    Double

    Definition Classes
    Vector3DPhysicalVectorOps
  26. def normalized: Vector3D

    Returns the same vector except with unit length.

    Returns the same vector except with unit length.

    Definition Classes
    Vector3DPhysicalVectorOps
  27. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String
    Definition Classes
    Vector3D → AnyRef → Any
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from PhysicalVectorOps[Vector3D]

Inherited from PhysicalVector

Inherited from AnyRef

Inherited from Any

Ungrouped