接口 Vector2实验性

Represents a two-directional vector.

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

实现于

属性

x y

属性

x: number

X component of the two-dimensional vector.

y: number

Y component of the two-dimensional vector.