Class

squants

QuantityVector

Related Doc: package squants

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

  1. new QuantityVector(coordinates: A*)

    Permalink

    coordinates

    Variable list of A

Type Members

  1. type SVectorType = QuantityVector[A]

    Permalink
    Definition Classes
    QuantityVectorSVector

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def #*: (DoubleVector) ⇒ SVector[A]

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

    Permalink
  5. def *(that: DoubleVector): A

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

    Permalink
    Definition Classes
    SVector
  7. def +: (SVectorType) ⇒ SVectorType

    Permalink
    Definition Classes
    SVector
  8. def -: (SVectorType) ⇒ SVectorType

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

    Permalink
  10. def /(that: Double): SVectorType

    Permalink
    Definition Classes
    SVector
  11. final def ==(arg0: Any): Boolean

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

    Permalink

    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
  13. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  14. def clone(): AnyRef

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

    Permalink

    Variable list of A

    Variable list of A

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

    Permalink
  17. def crossProduct(that: DoubleVector): SVectorType

    Permalink

    Create the Cross Product of two Vectors

    Create the Cross Product of two Vectors

    that

    Vector[A]

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

    Permalink
  19. def divide(that: A): DoubleVector

    Permalink
  20. def divide(that: Double): SVectorType

    Permalink

    Reduce a Vector

    Reduce a Vector

    that

    Double

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

    Permalink
  22. def dotProduct(that: DoubleVector): A

    Permalink

    Create the Dot Product of two Vectors

    Create the Dot Product of two Vectors

    that

    Double

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

    Permalink
    Definition Classes
    AnyRef
  24. def finalize(): Unit

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

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

    Permalink

    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]

  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def magnitude: A

    Permalink

    The scalar value of the Vector

    The scalar value of the Vector

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

    Permalink

    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

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

    Permalink

    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

  31. def minus(that: SVectorType): SVectorType

    Permalink

    Subtract two Vectors

    Subtract two Vectors

    that

    Vector[A]

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

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

    Permalink

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

  34. def normalize: SVectorType

    Permalink

    Creates the Unit Vector which corresponds to this vector

    Creates the Unit Vector which corresponds to this vector

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

    Permalink
    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  37. def plus(that: SVectorType): SVectorType

    Permalink

    Add two Vectors

    Add two Vectors

    that

    Vector[A]

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

    Permalink

    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
  39. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
  41. def times(that: Double): SVectorType

    Permalink

    Scale a Vector

    Scale a Vector

    that

    Double

    Definition Classes
    QuantityVectorSVector
  42. def to(uom: UnitOfMeasure[A]): DoubleVector

    Permalink

    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]

  43. def valueUnit: UnitOfMeasure[A]

    Permalink
  44. final def wait(): Unit

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

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

    Permalink
    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