Struct entmet_lib::datatypes::Rotations
source · pub struct Rotations {
pub x: f32,
pub y: f32,
pub z: f32,
}Expand description
A struct representing rotations in 3D space.
§Examples
use entmet_lib::datatypes::Rotations;
let rotations = Rotations { x: 45.0, y: 30.0, z: 60.0 };
assert_eq!(rotations.x, 45.0);
assert_eq!(rotations.y, 30.0);
assert_eq!(rotations.z, 60.0);Fields§
§x: f32The rotation around the x-axis
y: f32The rotation around the y-axis
z: f32The rotation around the z-axis
Trait Implementations§
source§impl PartialEq for Rotations
impl PartialEq for Rotations
impl StructuralPartialEq for Rotations
Auto Trait Implementations§
impl Freeze for Rotations
impl RefUnwindSafe for Rotations
impl Send for Rotations
impl Sync for Rotations
impl Unpin for Rotations
impl UnwindSafe for Rotations
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