AspectRatio
AspectRatio
- f32
Description
An
AspectRatio
is the ratio of width to height.
Functions
Function | Summary |
---|---|
clone(_self) | No Documentation 🚧 |
eq(_self, other) | No Documentation 🚧 |
inverse(_self) | Returns the inverse of this aspect ratio (height/width). |
is_landscape(_self) | Returns true if the aspect ratio represents a landscape orientation. |
is_portrait(_self) | Returns true if the aspect ratio represents a portrait orientation. |
is_square(_self) | Returns true if the aspect ratio is exactly square. |
ratio(_self) | Returns the aspect ratio as a f32 value. |