mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 16:13:28 +02:00
adds getAspectRatio function
This commit is contained in:
parent
8a1fd43437
commit
1327b8852b
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue