blob: 4bec53dc17f9e555698f3315f2a8256a4bd30e9e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
export interface Vec2 {
x: number,
y: number,
}
export function zero(): Vec2 {
return {
x: 0,
y: 0,
}
}
export function equals(v1: Vec2, v2: Vec2): boolean {
return v1.x === v2.x && v1.y === v2.y
}
|