Vector2

final case class Vector2(x: Double, y: Double)
Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def *(other: Vector2): Vector2
def *(value: Double): Vector2
def +(other: Vector2): Vector2
def +(value: Double): Vector2
def -(other: Vector2): Vector2
def -(value: Double): Vector2
def /(other: Vector2): Vector2
def /(value: Double): Vector2
def abs: Vector2
def clamp(min: Double, max: Double): Vector2
def distanceTo(other: Vector2): Double
def dot(other: Vector2): Double
def length: Double
def max(other: Vector2): Vector2
def max(value: Double): Vector2
def min(other: Vector2): Vector2
def min(value: Double): Vector2
def moveBy(amount: Vector2): Vector2
def moveBy(x: Double, y: Double): Vector2
def moveTo(newPosition: Vector2): Vector2
def moveTo(x: Double, y: Double): Vector2
def scaleBy(vec: Vector2): Vector2
def scaleBy(amount: Double): Vector2
def toList: List[Double]
def transform(matrix3: Matrix3): Vector2
def transform(matrix4: Matrix4): Vector2
def withX(newX: Double): Vector2
def withY(newY: Double): Vector2
def ~==(other: Vector2): Boolean

Inherited methods

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