DoubleVector

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

Double (Real Number) Vector

Double (Real Number) Vector

Value Params
coordinates

Double*

Authors

garyKeorkunian

Since

0.3.0

trait Serializable
trait Product
trait Equals
trait SVector[Double]
class Object
trait Matchable
class Any

Type members

Value members

Concrete methods

def angle(coordinateX: Int, coordinateY: Int, unit: AngleUnit): Angle
def crossProduct(that: SVectorType): SVector[Double]
def divide(that: Double): SVectorType
def dotProduct(that: SVectorType): Double
def magnitude: Double
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

Value Params
f

A => Double map function

def times(that: Double): SVectorType

Inherited methods

def #*: DoubleVector => SVector[Double]
Inherited from
SVector
def *(that: DoubleVector): Double
Inherited from
SVector
def *(that: Double): SVectorType
Inherited from
SVector
Inherited from
SVector
Inherited from
SVector
def /(that: Double): SVectorType
Inherited from
SVector
def polar(coordinateX: Int, coordinateY: Int, unit: AngleUnit): (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

Value Params
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)

Inherited from
SVector
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product