Skip to main content

TransformOperation Struct

Definition​

Assembly:Avalonia.Base
Package:Avalonia

Represents a single primitive transform (like translation, rotation, scale, etc.).

public struct TransformOperation

Inheritance: ValueType -> TransformOperation

Implements: IEquatable<TransformOperation>

Methods​

NameDescription
BakeBakes this operation to a transform matrix.
Equals (2 overloads)No summary available.
GetHashCodeNo summary available.
ToStringNo summary available.
TryInterpolateNo summary available.

Bake Method​

Bakes this operation to a transform matrix.

public void Bake()

Equals overloads​

Equals Method​

public bool Equals(Avalonia.Media.Transformation.TransformOperation other)
Parameters​

other Avalonia.Media.Transformation.TransformOperation

Returns​

bool

Equals Method​

public bool Equals(object obj)
Parameters​

obj object

Returns​

bool

GetHashCode Method​

public int GetHashCode()

Returns​

int

ToString Method​

public string ToString()

Returns​

string

TryInterpolate Method​

public bool TryInterpolate(Nullable<Avalonia.Media.Transformation.TransformOperation> from, Nullable<Avalonia.Media.Transformation.TransformOperation> to, double progress, Avalonia.Media.Transformation.TransformOperation& result)

Parameters​

from Nullable<Avalonia.Media.Transformation.TransformOperation>

to Nullable<Avalonia.Media.Transformation.TransformOperation>

progress double

result Avalonia.Media.Transformation.TransformOperation&

Returns​

bool

Properties​

NameDescription
IdentityReturns new identity transform operation.
IsIdentityReturns whether operation produces the identity matrix.

Identity Property​

Returns new identity transform operation.

public Avalonia.Media.Transformation.TransformOperation Identity { get; set; }

IsIdentity Property​

Returns whether operation produces the identity matrix.

public bool IsIdentity { get; set; }

Fields​

NameDescription
DataNo summary available.
MatrixNo summary available.
TypeNo summary available.

Data Field​

public Avalonia.Media.Transformation.TransformOperation.DataLayout Data

Matrix Field​

public Avalonia.Matrix Matrix

Type Field​

public Avalonia.Media.Transformation.TransformOperation.OperationType Type