mc-beta-server/server/Rotation.ts
Holly d82b86546a
All checks were successful
Node.js Build / build (20.x) (push) Successful in 5m18s
implement tile entity add + remove, and make loading more robust.
2024-11-25 22:28:33 +00:00

23 lines
No EOL
327 B
TypeScript

import Vec2 from "./Vec2";
export default class Rotation extends Vec2 {
public get yaw() {
return this.x;
}
public set yaw(value:number) {
this.x = value;
}
public get pitch() {
return this.y;
}
public set pitch(value:number) {
this.y = value;
}
toString() {
return `Rotation(${this.x},${this.y})`;
}
}