diff options
| -rw-r--r-- | gfx/camera.cpp | 6 | ||||
| -rw-r--r-- | gfx/camera.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gfx/camera.cpp b/gfx/camera.cpp index db748e9..4d46810 100644 --- a/gfx/camera.cpp +++ b/gfx/camera.cpp @@ -23,6 +23,12 @@ Camera::setAspect(Angle aspect) Frustum::updateCache(); } +Angle +Camera::getAspect() const +{ + return aspect; +} + Ray<GlobalPosition3D> Camera::unProject(const ScreenRelCoord & mouse) const { diff --git a/gfx/camera.h b/gfx/camera.h index b78827a..1be012b 100644 --- a/gfx/camera.h +++ b/gfx/camera.h @@ -13,6 +13,7 @@ public: [[nodiscard]] Ray<GlobalPosition3D> unProject(const ScreenRelCoord &) const; void setAspect(Angle aspect); + Angle getAspect() const; void setPosition(const GlobalPosition3D & p) |
