trait SVector[A] extends AnyRef
Root trait for representing Vectors
- A
Type for the Vector's coordinate values
- Source
- SVector.scala
- Since
0.3.0
- Alphabetic
- By Inheritance
- SVector
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract 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
- abstract def coordinates: Seq[A]
The list of values that makeup the Vector's Cartesian coordinates
- abstract def crossProduct(that: DoubleVector): SVector[A]
Create the Cross Product of two Vectors
Create the Cross Product of two Vectors
- that
Vector[A]
- abstract def divide(that: Double): SVectorType
Reduce a Vector
Reduce a Vector
- that
Double
- abstract def dotProduct(that: DoubleVector): A
Create the Dot Product of two Vectors
Create the Dot Product of two Vectors
- that
Double
- abstract def magnitude: A
The scalar value of the Vector
- abstract def minus(that: SVectorType): SVectorType
Subtract two Vectors
Subtract two Vectors
- that
Vector[A]
- abstract def normalize: SVectorType
Creates the Unit Vector which corresponds to this vector
- abstract def plus(that: SVectorType): SVectorType
Add two Vectors
Add two Vectors
- that
Vector[A]
- abstract def times(that: Double): SVectorType
Scale a Vector
Scale a Vector
- that
Double
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def #*: (DoubleVector) => SVector[A]
- def *(that: DoubleVector): A
- def *: (Double) => SVectorType
- def +: (SVectorType) => SVectorType
- def -: (SVectorType) => SVectorType
- def /(that: Double): SVectorType
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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)
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()