Packages

c

squants

DoubleVector

case class DoubleVector(coordinates: Double*) extends SVector[Double] with Product with Serializable

Double (Real Number) Vector

coordinates

Double*

Source
SVector.scala
Since

0.3.0

Linear Supertypes
Serializable, Product, Equals, SVector[Double], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DoubleVector
  2. Serializable
  3. Product
  4. Equals
  5. SVector
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DoubleVector(coordinates: Double*)

    coordinates

    Double*

Type Members

  1. type SVectorType = DoubleVector
    Definition Classes
    DoubleVectorSVector

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def #*: (DoubleVector) => SVector[Double]
    Definition Classes
    SVector
  4. def *(that: DoubleVector): Double
    Definition Classes
    SVector
  5. def *: (Double) => SVectorType
    Definition Classes
    SVector
  6. def +: (SVectorType) => SVectorType
    Definition Classes
    SVector
  7. def -: (SVectorType) => SVectorType
    Definition Classes
    SVector
  8. def /(that: Double): SVectorType
    Definition Classes
    SVector
  9. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. 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
    DoubleVectorSVector
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  13. val coordinates: Double*

    The list of values that makeup the Vector's Cartesian coordinates

    The list of values that makeup the Vector's Cartesian coordinates

    Definition Classes
    DoubleVectorSVector
  14. def crossProduct[B <: Quantity[B]](that: QuantityVector[B]): QuantityVector.SVectorType
  15. def crossProduct(that: SVectorType): SVector[Double]

    Create the Cross Product of two Vectors

    Create the Cross Product of two Vectors

    that

    Vector[A]

    Definition Classes
    DoubleVectorSVector
  16. def divide(that: Double): SVectorType

    Reduce a Vector

    Reduce a Vector

    that

    Double

    Definition Classes
    DoubleVectorSVector
  17. def dotProduct[B <: Quantity[B]](that: QuantityVector[B]): B
  18. def dotProduct(that: SVectorType): Double

    Create the Dot Product of two Vectors

    Create the Dot Product of two Vectors

    that

    Double

    Definition Classes
    DoubleVectorSVector
  19. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  21. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def magnitude: Double

    The scalar value of the Vector

    The scalar value of the Vector

    Definition Classes
    DoubleVectorSVector
  24. def map[A <: Quantity[A]](f: (Double) => A): QuantityVector[A]

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

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

    A

    <: Quantity

    f

    Double => B

  25. def map[A <: Double](f: (Double) => 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

  26. def minus(that: SVectorType): SVectorType

    Subtract two Vectors

    Subtract two Vectors

    that

    Vector[A]

    Definition Classes
    DoubleVectorSVector
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def normalize: SVectorType

    Creates the Unit Vector which corresponds to this vector

    Creates the Unit Vector which corresponds to this vector

    Definition Classes
    DoubleVectorSVector
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. def plus(that: SVectorType): SVectorType

    Add two Vectors

    Add two Vectors

    that

    Vector[A]

    Definition Classes
    DoubleVectorSVector
  32. def polar(coordinateX: Int = 0, coordinateY: Int = 1, unit: AngleUnit = Radians): (Double, 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
  33. def productElementNames: Iterator[String]
    Definition Classes
    Product
  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def times[A <: Quantity[A]](that: A): QuantityVector[A]
  36. def times(that: Double): SVectorType

    Scale a Vector

    Scale a Vector

    that

    Double

    Definition Classes
    DoubleVectorSVector
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from SVector[Double]

Inherited from AnyRef

Inherited from Any

Ungrouped