SVector

object SVector
Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(coordinates: Double*): DoubleVector
def apply[A <: Quantity[LazyRef(...)]](coordinates: A*): QuantityVector[A]
def apply(radius: Double, theta: Angle): DoubleVector

Create a 2-dimensional DoubleVector from Polar Coordinates

Create a 2-dimensional DoubleVector from Polar Coordinates

Value Params
radius

the magnitude of the vector

theta

the angle from the polar axis

def apply[A <: Quantity[LazyRef(...)]](radius: A, theta: Angle): QuantityVector[A]

Create a 2-dimensional QuantityVector[A] from Polar Coordinates

Create a 2-dimensional QuantityVector[A] from Polar Coordinates

Type Params
A

Quantity type

Value Params
radius

the magnitude of the vector

theta

the angle from the polar axis