squants

QuantityVector

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

Quantity Vector

A

QuantityType

coordinates

Variable list of A

Source
SVector.scala
Since

0.3.0

Linear Supertypes
Serializable, Serializable, Product, Equals, SVector[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. QuantityVector
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. SVector
  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

Type Members

  1. type SVectorType = QuantityVector[A]

    Definition Classes
    QuantityVectorSVector

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 #*: (DoubleVector) ⇒ SVector[A]

    Definition Classes
    SVector
  5. def *(that: Double): SVectorType

  6. def *(that: DoubleVector): A

    Definition Classes
    SVector
  7. def *: (Double) ⇒ SVectorType

    Definition Classes
    SVector
  8. def +: (SVectorType) ⇒ SVectorType

    Definition Classes
    SVector
  9. def -: (SVectorType) ⇒ SVectorType

    Definition Classes
    SVector
  10. def /(that: A): DoubleVector

  11. def /(that: Double): SVectorType

    Definition Classes
    SVector
  12. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  14. def angle(coordinateX: Int = 0, coordinateY: Int = 1, unit: AngleUnit = Radians): Angle

    The angle between the two Cartesian coordinates at the supplied indices

    The angle between the two Cartesian coordinates at the supplied indices

    coordinateX

    index of the abscissa coordinate (defaults to 0)

    coordinateY

    index of the ordinate coordinate (defaults to 1)

    unit

    unit for the angle (theta) component (defaults to Radians)

    returns

    Angle

    Definition Classes
    QuantityVectorSVector
  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
    QuantityVectorSVector
  18. def crossProduct[B <: Quantity[B], C <: Quantity[C]](that: SVector[B], quantTimes: (A, B) ⇒ C)(implicit num: Numeric[C]): QuantityVector[C]

  19. def crossProduct(that: DoubleVector): SVectorType

    Create the Cross Product of two Vectors

    Create the Cross Product of two Vectors

    that

    Vector[A]

    returns

    Definition Classes
    QuantityVectorSVector
  20. def divide[B <: Quantity[B], C <: Quantity[C]](quantDiv: (A) ⇒ C): QuantityVector[C]

  21. def divide(that: A): DoubleVector

  22. def divide(that: Double): SVectorType

    Reduce a Vector

    Reduce a Vector

    that

    Double

    returns

    Definition Classes
    QuantityVectorSVector
  23. def dotProduct[B <: Quantity[B], C <: Quantity[C]](that: SVector[B], quantTimes: (A, B) ⇒ C)(implicit num: Numeric[C]): C

  24. def dotProduct(that: DoubleVector): A

    Create the Dot Product of two Vectors

    Create the Dot Product of two Vectors

    that

    Double

    returns

    Definition Classes
    QuantityVectorSVector
  25. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  28. def in(uom: UnitOfMeasure[A]): QuantityVector[A]

    Returns a QuantityVector with all coordinates set to the supplied unit

    Returns a QuantityVector with all coordinates set to the supplied unit

    uom

    UnitOfMeasure[A]

    returns

  29. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  30. def magnitude: A

    The scalar value of the Vector

    The scalar value of the Vector

    returns

    Definition Classes
    QuantityVectorSVector
  31. def map[B <: Quantity[B]](f: (A) ⇒ B): QuantityVector[B]

    Creates a QuantityVector by mapping over each coordinate with the supplied function

    Creates a QuantityVector by mapping over each coordinate with the supplied function

    B

    <: Quantity

    f

    A => B

    returns

  32. def map[B <: Double](f: (A) ⇒ Double): DoubleVector

    Creates a DoubleVector by mapping over each coordinate with the supplied function

    Creates a DoubleVector by mapping over each coordinate with the supplied function

    f

    A => Double map function

    returns

  33. def minus(that: SVectorType): SVectorType

    Subtract two Vectors

    Subtract two Vectors

    that

    Vector[A]

    returns

    Definition Classes
    QuantityVectorSVector
  34. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  35. def normalize(unit: UnitOfMeasure[A]): SVectorType

    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

  36. def normalize: SVectorType

    Creates the Unit Vector which corresponds to this vector

    Creates the Unit Vector which corresponds to this vector

    returns

    Definition Classes
    QuantityVectorSVector
  37. final def notify(): Unit

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

    Definition Classes
    AnyRef
  39. def plus(that: SVectorType): SVectorType

    Add two Vectors

    Add two Vectors

    that

    Vector[A]

    returns

    Definition Classes
    QuantityVectorSVector
  40. def polar(coordinateX: Int = 0, coordinateY: Int = 1, unit: AngleUnit = Radians): (A, Angle)

    The polar coordinates (r, theta) of the two Cartesian coordinates at the supplied indices

    The polar coordinates (r, theta) of the two Cartesian coordinates at the supplied indices

    coordinateX

    index of the abscissa coordinate (defaults to 0)

    coordinateY

    index of the ordinate coordinate (defaults to 1)

    unit

    unit for the angle (theta) component (defaults to Radians)

    returns

    (A, Angle)

    Definition Classes
    SVector
  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  42. def times[B <: Quantity[B], C <: Quantity[C]](quantTimes: (A) ⇒ C): QuantityVector[C]

  43. def times(that: Double): SVectorType

    Scale a Vector

    Scale a Vector

    that

    Double

    returns

    Definition Classes
    QuantityVectorSVector
  44. def to(uom: 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

    uom

    UnitOfMeasure[A]

    returns

  45. def valueUnit: UnitOfMeasure[A]

  46. final def wait(): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  48. 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 SVector[A]

Inherited from AnyRef

Inherited from Any

Ungrouped