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
- Alphabetic
- By Inheritance
- QuantityVector
- Serializable
- Serializable
- Product
- Equals
- SVector
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
QuantityVector(coordinates: A*)
- coordinates
Variable list of A
Type Members
-
type
SVectorType = QuantityVector[A]
- Definition Classes
- QuantityVector → SVector
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
#*: (DoubleVector) ⇒ SVector[A]
- Definition Classes
- SVector
-
def
*(that: DoubleVector): A
- Definition Classes
- SVector
-
def
*(that: Double): SVectorType
- Definition Classes
- SVector
-
def
+: (SVectorType) ⇒ SVectorType
- Definition Classes
- SVector
-
def
-: (SVectorType) ⇒ SVectorType
- Definition Classes
- SVector
- def /(that: A): DoubleVector
-
def
/(that: Double): SVectorType
- Definition Classes
- SVector
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
- QuantityVector → SVector
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
coordinates: A*
The list of values that makeup the Vector's Cartesian coordinates
The list of values that makeup the Vector's Cartesian coordinates
- Definition Classes
- QuantityVector → SVector
- def crossProduct[B <: Quantity[B], C <: Quantity[C]](that: SVector[B], quantTimes: (A, B) ⇒ C): QuantityVector[C]
-
def
crossProduct(that: DoubleVector): SVectorType
Create the Cross Product of two Vectors
- def divide[B <: Quantity[B], C <: Quantity[C]](quantDiv: (A) ⇒ C): QuantityVector[C]
- def divide(that: A): DoubleVector
-
def
divide(that: Double): SVectorType
Reduce a Vector
- def dotProduct[B <: Quantity[B], C <: Quantity[C]](that: SVector[B], quantTimes: (A, B) ⇒ C)(implicit num: Numeric[C]): C
-
def
dotProduct(that: DoubleVector): A
Create the Dot Product of two Vectors
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
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]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
magnitude: A
The scalar value of the Vector
The scalar value of the Vector
- Definition Classes
- QuantityVector → SVector
-
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
-
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
-
def
minus(that: SVectorType): SVectorType
Subtract two Vectors
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
normalize(unit: UnitOfMeasure[A]): SVectorType
Creates the Unit Vector which corresponds to this vector using the given unit
-
def
normalize: SVectorType
Creates the Unit Vector which corresponds to this vector
Creates the Unit Vector which corresponds to this vector
- Definition Classes
- QuantityVector → SVector
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
plus(that: SVectorType): SVectorType
Add two Vectors
-
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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def times[B <: Quantity[B], C <: Quantity[C]](quantTimes: (A) ⇒ C): QuantityVector[C]
-
def
times(that: Double): SVectorType
Scale a Vector
-
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]
- def valueUnit: UnitOfMeasure[A]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()