diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -54,6 +54,10 @@ struct Size { : width (w) , height (h) {} + + float ratio () const { + return float (width) / height; + } int width; int height; |
