squants

QuantityVector

case class QuantityVector[A <: Quantity[A]](coordinates: A*) extends Vector[A] with Product with Serializable

Quantity Vector

EXPERIMENTAL

A

QuantityType

coordinates

Variable list of A

Since

0.3.0

Linear Supertypes
Serializable, Serializable, Product, Equals, Vector[A], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. QuantityVector
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Vector
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new QuantityVector(coordinates: A*)

    coordinates

    Variable list of A

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def #*: (Vector[Double]) ⇒ Vector[A]

    crossProduct

    crossProduct

    Definition Classes
    Vector
  5. def *[B <: Quantity[B], C <: Quantity[C]](that: B)(implicit mapTo: (A, B) ⇒ C): QuantityVector[C]

  6. def *(that: Vector[Double]): A

    dotProduct

    dotProduct

    Definition Classes
    Vector
  7. def *: (Double) ⇒ Vector[A]

    times

    times

    Definition Classes
    Vector
  8. def +: (Vector[A]) ⇒ Vector[A]

    plus

    plus

    Definition Classes
    Vector
  9. def -: (Vector[A]) ⇒ Vector[A]

    minus

    minus

    Definition Classes
    Vector
  10. def /[B <: Quantity[B], C <: Quantity[C]](that: B)(implicit mapTo: (A, B) ⇒ C): QuantityVector[C]

  11. def /(that: A): DoubleVector

    divide

  12. def /(that: Double): Vector[A]

    divide

    divide

    Definition Classes
    Vector
  13. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  14. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  15. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  16. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. val coordinates: A*

    Variable list of A

    Variable list of A

    Definition Classes
    QuantityVectorVector
  18. def crossProduct(that: Vector[Double]): Vector[A]

    Create the Cross Product of two Vectors

    Create the Cross Product of two Vectors

    that

    Vector[A]

    returns

    Definition Classes
    QuantityVectorVector
  19. def divide[B <: Quantity[B], C <: Quantity[C]](that: B)(implicit mapTo: (A, B) ⇒ C): QuantityVector[C]

  20. def divide(that: A): DoubleVector

    Reduce and "de-unit" a Vector.

    Reduce and "de-unit" a Vector. Returns a DoubleVector

    that

    Quantity[A]

    returns

  21. def divide(that: Double): Vector[A]

    Reduce a Vector

    Reduce a Vector

    that

    Double

    returns

    Definition Classes
    QuantityVectorVector
  22. def dotProduct[B <: Quantity[B], C <: Quantity[C]](that: Vector[B])(implicit mapTo: (A, B) ⇒ C, num: Numeric[C]): C

  23. def dotProduct(that: Vector[Double]): A

    Create the Dot Product of two Vectors

    Create the Dot Product of two Vectors

    that

    Vector[A]

    returns

    Definition Classes
    QuantityVectorVector
  24. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  26. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. def magnitude: A

    The scalar value of the Vector

    The scalar value of the Vector

    returns

    Definition Classes
    QuantityVectorVector
  29. def minus(that: Vector[A]): Vector[A]

    Subtract two Vectors

    Subtract two Vectors

    that

    Vector[A]

    returns

    Definition Classes
    QuantityVectorVector
  30. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  31. def normalize(unit: UnitOfMeasure[A]): Vector[A]

    Creates the Unit Vector which corresponds to this vector using the given unit

    Creates the Unit Vector which corresponds to this vector using the given unit

    returns

  32. def normalize: Vector[A]

    Creates the Unit Vector which corresponds to this vector

    Creates the Unit Vector which corresponds to this vector

    returns

    Definition Classes
    QuantityVectorVector
  33. final def notify(): Unit

    Definition Classes
    AnyRef
  34. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  35. def plus(that: Vector[A]): Vector[A]

    Add two Vectors

    Add two Vectors

    that

    Vector[A]

    returns

    Definition Classes
    QuantityVectorVector
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  37. def times[B <: Quantity[B], C <: Quantity[C]](that: B)(implicit mapTo: (A, B) ⇒ C): QuantityVector[C]

    Strategy #1 Prototype for implementation that support dimensional conversion

    Strategy #1 Prototype for implementation that support dimensional conversion

    Implement abstract methods here that use implicit mapTo function to perform the dimensional operation

    Pros - requires no implicit classes or extended case classes, it will be much easier to implement divide, dotProduct and crossProduct

    Cons - requires implicit conversion to be in scope

  38. def times(that: Double): Vector[A]

    Scale a Vector

    Scale a Vector

    that

    Double

    returns

    Definition Classes
    QuantityVectorVector
  39. def to(unit: UnitOfMeasure[A]): DoubleVector

    Returns a DoubleVector representing the quantity values in terms of the supplied unit

    Returns a DoubleVector representing the quantity values in terms of the supplied unit

    unit

    UnitOfMeasure[A]

    returns

  40. def valueUnit: UnitOfMeasure[A]

  41. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Vector[A]

Inherited from AnyRef

Inherited from Any

Ungrouped