14 lines
186 B
TypeScript
14 lines
186 B
TypeScript
|
|
export default class Tuple {
|
||
|
|
x: number;
|
||
|
|
y: number;
|
||
|
|
|
||
|
|
constructor(x: number, y: number) {
|
||
|
|
this.x = x;
|
||
|
|
this.y = y;
|
||
|
|
}
|
||
|
|
|
||
|
|
toString() {
|
||
|
|
return `${this.x},${this.y}`;
|
||
|
|
}
|
||
|
|
}
|