TransformOperation
struct · ferroui-base · v0.5.0
struct TransformOperation
Represents a single primitive transform (like translation, rotation, scale, etc.).
The default value is a translation by zero whose matrix is all zeros; call
bake after setting the type and data.
Members
type_
type_: OperationType
matrix
matrix: crate::Matrix
data
data: DataLayout
is_identity
fn is_identity(self: &Self) -> bool
Returns whether the operation produces the identity matrix.
bake
fn bake(self: &mut Self)
Bakes this operation to a transform matrix.
identity
fn identity() -> TransformOperation
Returns a new identity operation.
try_interpolate
fn try_interpolate(from: Option<TransformOperation>, to: Option<TransformOperation>, progress: f64, result: &mut TransformOperation) -> bool
Attempts to interpolate between two transform operations. Returns false if the operations cannot be interpolated.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugDefaultStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.