case class DoubleVector(coordinates: Double*) extends SVector[Double] with Product with Serializable
- Alphabetic
- By Inheritance
- DoubleVector
- Serializable
- Serializable
- Product
- Equals
- SVector
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
SVectorType = DoubleVector
- Definition Classes
- DoubleVector → SVector
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
#*: (DoubleVector) ⇒ SVector[Double]
- Definition Classes
- SVector
-
def
*(that: DoubleVector): Double
- Definition Classes
- SVector
-
def
*(that: Double): SVectorType
- Definition Classes
- SVector
-
def
+: (SVectorType) ⇒ SVectorType
- Definition Classes
- SVector
-
def
-: (SVectorType) ⇒ SVectorType
- Definition Classes
- SVector
-
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
- DoubleVector → SVector
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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
- DoubleVector → SVector
- def crossProduct[B <: Quantity[B]](that: QuantityVector[B]): QuantityVector.SVectorType
-
def
crossProduct(that: SVectorType): SVector[Double]
Create the Cross Product of two Vectors
-
def
divide(that: Double): SVectorType
Reduce a Vector
- def dotProduct[B <: Quantity[B]](that: QuantityVector[B]): B
-
def
dotProduct(that: SVectorType): Double
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()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
magnitude: Double
The scalar value of the Vector
The scalar value of the Vector
- Definition Classes
- DoubleVector → SVector
-
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
-
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
-
def
minus(that: SVectorType): SVectorType
Subtract two Vectors
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
normalize: SVectorType
Creates the Unit Vector which corresponds to this vector
Creates the Unit Vector which corresponds to this vector
- Definition Classes
- DoubleVector → 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): (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
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def times[A <: Quantity[A]](that: A): QuantityVector[A]
-
def
times(that: Double): SVectorType
Scale a Vector
-
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()