adds getAspectRatio function

This commit is contained in:
tosh 2013-03-27 03:30:25 +01:00
parent 8a1fd43437
commit 1327b8852b

View file

@ -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