Bearbeiten

Freigeben über


SKMatrix44 Class

Definition

A 3D, 4x4 matrix.

public class SKMatrix44 : SkiaSharp.SKObject
Inheritance

Constructors

SKMatrix44()

Creates a new, uninitialized instance of SKMatrix44.

SKMatrix44(SKMatrix)

Creates a new instance of SKMatrix44 using the values from a SKMatrix instance.

SKMatrix44(SKMatrix44, SKMatrix44)

Creates a new instance of SKMatrix44 using the concatenated values from two other instances.

SKMatrix44(SKMatrix44)

Creates a new instance of SKMatrix44 using the values from another instance.

Properties

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
IgnorePublicDispose

Gets or sets a value indicating whether the call the public Dispose() should be no-op.

(Inherited from SKNativeObject)
IsDisposed

Gets or sets a value indicating whether the object has already been disposed.

(Inherited from SKNativeObject)
IsInvertible
Item[Int32, Int32]

Gets or sets a value in the matrix.

Matrix

Gets the SKMatrix equivalent of the current matrix.

OwnsHandle

Gets a value indicating whether this object should destroy the underlying native object.

(Inherited from SKObject)
Type

Gets a bit field describing the transformations the matrix may perform.

Methods

CreateIdentity()

Creates a new identity matrix.

CreateRotation(Single, Single, Single, Single)

Creates a new rotation matrix.

CreateRotationDegrees(Single, Single, Single, Single)

Creates a new rotation matrix.

CreateScale(Single, Single, Single)

Creates a new scale matrix.

CreateTranslate(Single, Single, Single)

Creates a new translation matrix.

CreateTranslation(Single, Single, Single)
Determinant()

Calculates the determinant of the matrix.

Dispose()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

Releases the unmanaged resources used by the SKMatrix44 and optionally releases the managed resources.

DisposeInternal()

Triggers a dispose, ignoring the value of IgnorePublicDispose.

(Inherited from SKNativeObject)
DisposeManaged()

Implemented by derived SKObject types to destroy any managed objects.

(Inherited from SKObject)
DisposeNative()

Implemented by derived SKObject types to destroy any native objects.

DisposeNative()

Implemented by derived SKObject types to destroy any native objects.

(Inherited from SKObject)
DisposeUnownedManaged() (Inherited from SKObject)
Equal(SKMatrix44, SKMatrix44)

Determines if the two matrices are equal.

FromColumnMajor(Single[])

Creates a new matrix using the values from the column-major array.

FromRowMajor(Single[])

Creates a new matrix using the values from the row-major array.

Invert()

Creates an inverted matrix from the current matrix.

Invert(SKMatrix44)

Inverts the current matrix and stores the result in the provided matrix.

MapPoint(SKPoint)

Applies the matrix to a point.

MapPoints(SKPoint[])

Applies the matrix to an array of points.

MapScalars(Single, Single, Single, Single)

Applies the matrix to a vector.

MapScalars(Single[], Single[])

Applies the matrix to a vector.

MapScalars(Single[])

Applies the matrix to a vector.

MapVector2(Single[], Single[])

Applies the matrix to a series of [x, y] pairs, returning the [x', y', z', w'] result.

MapVector2(Single[])

Applies the matrix to a series of [x, y] pairs, returning the [x', y', z', w'] result.

PostConcat(SKMatrix44)

Post-concatenates the current matrix with the specified matrix.

PostScale(Single, Single, Single)

Post-scales the current matrix with the specified scale.

PostTranslate(Single, Single, Single)

Post-translates the current matrix with the specified stranslationale.

PreConcat(SKMatrix44)

Pre-concatenates the matrix with the specified matrix.

PreScale(Single, Single, Single)

Pre-scales the current matrix with the specified scale.

Preserves2DAxisAlignment(Single)

Determines if transforming an axis-aligned square in 2D by this matrix will produce another 2D, axis-aligned square.

PreTranslate(Single, Single, Single)

Pre-translates the current matrix with the specified translation.

Set3x3ColumnMajor(Single[])
Set3x3RowMajor(Single[])
SetColumnMajor(Single[])

Resets the current matrix with the specified column-major values.

SetConcat(SKMatrix44, SKMatrix44)

Reset the current matrix with the values from the concatenation of the specified matrices.

SetIdentity()

Resets the current matrix to identity.

SetRotationAbout(Single, Single, Single, Single)

Resets the current matrix to a rotation matrix.

SetRotationAboutDegrees(Single, Single, Single, Single)

Resets the current matrix to a rotation matrix.

SetRotationAboutUnit(Single, Single, Single, Single)

Resets the current matrix to a rotation matrix, without checking to see if the specified vector is unit-length.

SetRowMajor(Single[])

Resets the current matrix with the specified row-major values.

SetScale(Single, Single, Single)

Resets the current matrix to a scale matrix.

SetTranslate(Single, Single, Single)

Resets the current matrix to a translation matrix.

ToColumnMajor()

Converts the current matrix to a column-major array.

ToColumnMajor(Single[])

Converts the current matrix to a column-major array.

ToRowMajor()

Converts the current matrix to a row-major array.

ToRowMajor(Single[])

Converts the current matrix to a row-major array.

Transpose()

Transposes the current matrix.

Operators

Implicit(SKMatrix to SKMatrix44)

Extension Methods

ToColorSpaceXyz(SKMatrix44)

Applies to