Simple 2D vector representing an X/Y coordinate or offset.

interface Vector2D {
    x: number;
    y: number;
}

Properties

x y

Properties

x: number

The X coordinate or offset.

y: number

The Y coordinate or offset.