2024-10-26 14:24:38 +01:00
|
|
|
import Vec2 from "./Vec2";
|
2023-11-02 08:31:43 +00:00
|
|
|
|
2024-10-26 14:24:38 +01:00
|
|
|
export default class Rotation extends Vec2 {
|
2023-11-02 08:31:43 +00:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|