Packages

c

myscala.math.vector

ZeroVector2D

final class ZeroVector2D extends Vector2D

Zero filled vector for Vector2D used for initializing mutable variables.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZeroVector2D
  2. Vector2D
  3. PhysicalVectorOps
  4. PhysicalVector
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ZeroVector2D()

Value Members

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

    Scalar multiplication.

    Scalar multiplication. Multiples both components by the argument.

    returns

    PhysicalVector after the multiplication

    Definition Classes
    Vector2DPhysicalVectorOps
  4. def +(i: Double): Vector2D

    Scalar summation.

    Scalar summation. Adds a scala to both components.

    returns

    PhysicalVector of the sum

    Definition Classes
    Vector2DPhysicalVectorOps
  5. def +(that: Vector2D): Vector2D

    summation of two PhysicalVector

    summation of two PhysicalVector

    that

    the other to sum

    returns

    PhysicalVector equal to the sum of both vectors

    Definition Classes
    Vector2DPhysicalVectorOps
  6. def -(i: Double): Vector2D

    Scalar subtraction.

    Scalar subtraction. Removes the argument from this vector

    returns

    the difference between this and that scalar

    Definition Classes
    Vector2DPhysicalVectorOps
  7. def -(that: Vector2D): Vector2D

    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
    Vector2DPhysicalVectorOps
  8. def /(i: Double): Vector2D

    Division by a scalar.

    Division by a scalar.

    returns

    result from the division

    Definition Classes
    Vector2DPhysicalVectorOps
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. val X: Double
    Definition Classes
    Vector2D
  11. val Y: Double
    Definition Classes
    Vector2D
  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. 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
    Vector2DPhysicalVectorOps
  14. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  15. def distanceTo(that: Vector2D): 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
    Vector2DPhysicalVectorOps
  16. def dot(that: Vector2D): 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
    Vector2DPhysicalVectorOps
  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. 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
    Vector2DPhysicalVectorOps → AnyRef → Any
  19. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def hashCode: Int

    Definition of equality.

    Definition of equality.

    returns

    Int representing the object

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

    Computes the L2 norm of this vector.

    Computes the L2 norm of this vector.

    returns

    Double

    Definition Classes
    Vector2DPhysicalVectorOps
  25. def normalized: Vector2D

    Returns the same vector except with unit length.

    Returns the same vector except with unit length.

    Definition Classes
    Vector2DPhysicalVectorOps
  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def orthogonal: Vector2D

    Returns one of the two possible orthogonal vectors NORMALIZED.

    Returns one of the two possible orthogonal vectors NORMALIZED.

    Definition Classes
    Vector2D
  29. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  30. def toString(): String

    Prints the vector as a string such as (X, Y).

    Prints the vector as a string such as (X, Y).

    returns

    string representation

    Definition Classes
    Vector2D → 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 Vector2D

Inherited from PhysicalVectorOps[Vector2D]

Inherited from PhysicalVector

Inherited from AnyRef

Inherited from Any

Ungrouped