Struct Vector2

2-element structure that can be used to represent positions in 2d-space, or any other pair of numeric values.

struct Vector2 ;

Fields

NameTypeDescription
height float
width float
x float
y float

Methods

NameDescription
opDispatch Swizzle the vector with x, y, or n. Pass floats as args for any n's; if there are more n's than args, the last arg is used for the rest. If no args are passed at all, 0.0 is used for each n.