From 1327b8852bac7f426a158fbc1eed5becafb13cf5 Mon Sep 17 00:00:00 2001 From: tosh Date: Wed, 27 Mar 2013 03:30:25 +0100 Subject: [PATCH] adds getAspectRatio function --- interface/src/FieldOfView.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/interface/src/FieldOfView.h b/interface/src/FieldOfView.h index d9f8918526..1bfa7c7f33 100644 --- a/interface/src/FieldOfView.h +++ b/interface/src/FieldOfView.h @@ -117,6 +117,11 @@ class FieldOfView * applied. */ float getTransformOffset() const { return vec_bounds_high.z; } + + /** + * Returns the aspect ratio. + */ + float getAspectRatio() const { return val_height / val_width; } }; #endif