From 67621588d291a82d7cbd5de6f08e423bbe6c21d9 Mon Sep 17 00:00:00 2001 From: ganovelli Date: Thu, 19 Jan 2017 10:37:47 +0100 Subject: [PATCH] const added added const to GetFrustum --- vcg/math/camera.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcg/math/camera.h b/vcg/math/camera.h index e4502197..a185f585 100644 --- a/vcg/math/camera.h +++ b/vcg/math/camera.h @@ -229,7 +229,7 @@ public: vcg::Matrix44 GetMatrix(S nearVal, S farVal); /// returns the frustum - inline void GetFrustum(S & sx, S & dx, S & bt, S & tp, S & nr); + inline void GetFrustum(S & sx, S & dx, S & bt, S & tp, S & nr) const; //--- Space transformation methods @@ -549,7 +549,7 @@ void Camera::SetIsometric(S sx, S dx, S bt, S tp, S Focal, vcg::Point2 V /// returns the frustum template -void Camera:: GetFrustum( S & sx, S & dx, S & bt, S & tp, S & nr) +void Camera:: GetFrustum( S & sx, S & dx, S & bt, S & tp, S & nr) const { dx = CenterPx.X()* PixelSizeMm.X(); //scaled center sx = -( (S)ViewportPx.X() - CenterPx.X() ) * PixelSizeMm.X();