Struct bevy_math::AspectRatio
source · pub struct AspectRatio(/* private fields */);
Expand description
An AspectRatio
is the ratio of width to height.
Implementations§
Trait Implementations§
source§impl From<AspectRatio> for f32
impl From<AspectRatio> for f32
source§fn from(aspect_ratio: AspectRatio) -> Self
fn from(aspect_ratio: AspectRatio) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for AspectRatio
impl Send for AspectRatio
impl Sync for AspectRatio
impl Unpin for AspectRatio
impl UnwindSafe for AspectRatio
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more