pub struct Local {
pub translation: Vec2,
pub rotation: Angle,
}Expand description
Where a node sits relative to its parent, or relative to the world when it has none.
Fields§
§translation: Vec2Offset from the parent’s origin, in the parent’s rotated frame.
rotation: AngleRotation relative to the parent’s.
Implementations§
Trait Implementations§
impl Copy for Local
impl Eq for Local
impl StructuralPartialEq for Local
Auto Trait Implementations§
impl Freeze for Local
impl RefUnwindSafe for Local
impl Send for Local
impl Sync for Local
impl Unpin for Local
impl UnsafeUnpin for Local
impl UnwindSafe for Local
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