pub struct NodeTransformContext {
pub parent_world: Affine,
pub linear: Affine,
pub local: Affine,
pub world: Affine,
pub frame: f64,
pub position: DVec2,
pub anchor: DVec2,
pub pivot_world: DVec2,
}Expand description
Resolved transform information for one node at an editor frame.
Fields§
§parent_world: AffineTransform from the node’s parent coordinate space into world space.
linear: AffineLinear part of this node’s transform: rotation * skew * scale. Does not contain position or anchor translations.
local: AffineFull node-local to parent transform.
world: AffineFull node-local to world transform.
frame: f64Effective frame after ancestor layer time-stretch mappings.
position: DVec2Node position in parent coordinates.
anchor: DVec2Node anchor/pivot in local coordinates.
pivot_world: DVec2Pivot location in world coordinates.
Trait Implementations§
Source§impl Clone for NodeTransformContext
impl Clone for NodeTransformContext
Source§fn clone(&self) -> NodeTransformContext
fn clone(&self) -> NodeTransformContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NodeTransformContext
Auto Trait Implementations§
impl Freeze for NodeTransformContext
impl RefUnwindSafe for NodeTransformContext
impl Send for NodeTransformContext
impl Sync for NodeTransformContext
impl Unpin for NodeTransformContext
impl UnsafeUnpin for NodeTransformContext
impl UnwindSafe for NodeTransformContext
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