pub struct RecordTransform {
pub scale: f32,
pub angle: f32,
}Expand description
One segment’s frame-over-frame motion: uniform scale and rotation about a shared external center.
Fields§
§scale: f32§angle: f32Implementations§
Source§impl RecordTransform
impl RecordTransform
pub const IDENTITY: Self
pub fn apply(&self, center: Point, p: Point) -> Point
Sourcepub fn apply_to_bounds(&self, center: Point, bounds: Rect) -> Rect
pub fn apply_to_bounds(&self, center: Point, bounds: Rect) -> Rect
Axis-aligned bounds of bounds after the transform: the four
transformed corners’ box. This is the once-per-group bound transform
that replaces per-entry tight-bounds recomputation for retained
content.
Trait Implementations§
Source§impl Clone for RecordTransform
impl Clone for RecordTransform
Source§fn clone(&self) -> RecordTransform
fn clone(&self) -> RecordTransform
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 RecordTransform
Source§impl Debug for RecordTransform
impl Debug for RecordTransform
Source§impl PartialEq for RecordTransform
impl PartialEq for RecordTransform
impl StructuralPartialEq for RecordTransform
Auto Trait Implementations§
impl Freeze for RecordTransform
impl RefUnwindSafe for RecordTransform
impl Send for RecordTransform
impl Sync for RecordTransform
impl Unpin for RecordTransform
impl UnsafeUnpin for RecordTransform
impl UnwindSafe for RecordTransform
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