pub struct Transform {
pub axis1: Option<EntityId>,
pub axis2: Option<EntityId>,
pub scale: Option<f64>,
}Expand description
The axes and scale shared by every transformation operator.
Every field is optional except the origin: the schema defaults the axes to the identity frame and the scale to one.
Fields§
§axis1: Option<EntityId>Axis1: the local X direction.
axis2: Option<EntityId>Axis2: the local Y direction.
scale: Option<f64>Scale. Absent means one, which is why None is not zero.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Transform
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnsafeUnpin for Transform
impl UnwindSafe for Transform
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