Skip to main content

Vector

interface Vector {
readonly x: number
readonly y: number
}

This type represents a 2D vector. This same type is used to represent absolute points, relative offsets, and rectangular sizes.