Packages

t

myscala.math.vector

PhysicalVectorOps

trait PhysicalVectorOps[A] extends AnyRef

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

Abstract Value Members

  1. abstract def *(d: Double): A

    Scalar multiplication.

    Scalar multiplication. Multiples both components by the argument.

    d

    Scalar to multiply by

    returns

    PhysicalVector after the multiplication

  2. abstract def +(d: Double): A

    Scalar summation.

    Scalar summation. Adds a scala to both components.

    d

    scalar to add

    returns

    PhysicalVector of the sum

  3. abstract def +(that: A): A

    summation of two PhysicalVector

    summation of two PhysicalVector

    that

    the other to sum

    returns

    PhysicalVector equal to the sum of both vectors

  4. abstract def -(d: Double): A

    Scalar subtraction.

    Scalar subtraction. Removes the argument from this vector

    d

    scala to remove

    returns

    the difference between this and that scalar

  5. abstract def -(that: A): A

    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

  6. abstract def /(d: Double): A

    Division by a scalar.

    Division by a scalar.

    d

    Scalar to divide this by

    returns

    result from the division

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

    is the comparisoin legal

  8. abstract def distanceTo(that: A): 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

  9. abstract def dot(that: A): 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

  10. abstract def norm: Double

    Computes the L2 norm of this vector.

    Computes the L2 norm of this vector.

    returns

    Double

  11. abstract def normalized: A

    Returns the same vector except with unit length.

Concrete 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[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped