Vector2

sfml.system.Vector2
See theVector2 companion trait
object Vector2

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Vector2.type

Members list

Type members

Classlikes

trait Vector2fImpl(using ctor: ctor[Float]) extends Vector2[Float]

Attributes

Supertypes
trait Vector2[Float]
class Object
trait Matchable
class Any
trait Vector2iImpl(using ctor: ctor[Int]) extends Vector2[Int]

Attributes

Supertypes
trait Vector2[Int]
class Object
trait Matchable
class Any
object ctor

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
ctor.type

Value members

Concrete methods

inline def apply[T <: Float | Int](x: T, y: T): Vector2[T]
inline def apply[T <: Float | Int]()(using Numeric[T]): Vector2[T]
def unapply[T](self: Vector2[T]): (T, T)

Givens

Givens

inline given tupleToImmutableVector2Float[T : Numeric]: tupleToImmutableVector2Float[T]
inline given tupleToImmutableVector2Int[T : Numeric]: tupleToImmutableVector2Int[T]
inline given tupleToVector2Float[T : Numeric]: tupleToVector2Float[T]
inline given tupleToVector2Int[T : Numeric]: tupleToVector2Int[T]
inline given vector2FloatToImmVector2Int: vector2FloatToImmVector2Int
inline given vector2FloatToVector2Int: vector2FloatToVector2Int
inline given vector2IntToImmVector2Float: vector2IntToImmVector2Float
inline given vector2IntToVector2Float: vector2IntToVector2Float

Extensions

Extensions

extension (self: Immutable[Vector2[Float]])
def *(rhs: Float): Vector2[Float]
def +(rhs: Immutable[Vector2[Float]]): Vector2[Float]
def -(rhs: Immutable[Vector2[Float]]): Vector2[Float]
def /(rhs: Float): Vector2[Float]
def length(): Float
def unary_-: Vector2[Float]
def x: Float
def y: Float
extension (self: Immutable[Vector2[Int]])
def *(rhs: Int): Vector2[Int]
def +(rhs: Immutable[Vector2[Int]]): Vector2[Int]
def -(rhs: Immutable[Vector2[Int]]): Vector2[Int]
def /(rhs: Int): Vector2[Int]
inline def length(): Float
def unary_-: Vector2[Int]
def x: Int
def y: Int