Vec

final case class Vec(x: Double, y: Double)

A 2D vector. We can't use the name Vector as Scala already uses it.

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def *(d: Double): Vec
def +(that: Vec): Vec
def -(that: Vec): Vec
def /(d: Double): Vec
def angle: Angle
def cross(that: Vec): Double

Z-component of the cross product of this and that

Z-component of the cross product of this and that

def dot(that: Vec): Double
def left: Vec
def length: Double
def right: Vec
def rotate(by: Angle): Vec
def unary_-: Vec

Inherited methods

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