Edit

SKMatrix44 Struct

Definition

A 3D, 4x4 matrix.

public struct SKMatrix44 : IEquatable<SkiaSharp.SKMatrix44>
Inheritance
SKMatrix44
Implements

Constructors

Name Description
SKMatrix44()

Creates a new, uninitialized instance of SKMatrix44.

SKMatrix44(Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single)

Initializes a new instance of the SKMatrix44 struct with the specified values.

SKMatrix44(SKMatrix)

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

SKMatrix44(SKMatrix44)

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

Fields

Name Description
Empty

Represents an empty matrix with all values set to zero.

Identity

Represents the identity matrix.

Properties

Name Description
IsInvertible

Gets whether this matrix is invertible.

Item[Int32, Int32]

Gets or sets a value in the matrix.

M00

Gets or sets the value at row 0, column 0.

M01

Gets or sets the value at row 0, column 1.

M02

Gets or sets the value at row 0, column 2.

M03

Gets or sets the value at row 0, column 3.

M10

Gets or sets the value at row 1, column 0.

M11

Gets or sets the value at row 1, column 1.

M12

Gets or sets the value at row 1, column 2.

M13

Gets or sets the value at row 1, column 3.

M20

Gets or sets the value at row 2, column 0.

M21

Gets or sets the value at row 2, column 1.

M22

Gets or sets the value at row 2, column 2.

M23

Gets or sets the value at row 2, column 3.

M30

Gets or sets the value at row 3, column 0.

M31

Gets or sets the value at row 3, column 1.

M32

Gets or sets the value at row 3, column 2.

M33

Gets or sets the value at row 3, column 3.

Matrix

Gets the SKMatrix equivalent of the current matrix.

Methods

Name Description
Add(SKMatrix44, SKMatrix44)

Adds two matrices and returns the result.

Concat(SKMatrix44, SKMatrix44, SKMatrix44)

Concatenates two matrices into a target matrix.

Concat(SKMatrix44, SKMatrix44)

Concatenates two matrices and returns the result.

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, Single, Single, Single)

Creates a 3D scaling matrix with a pivot point.

CreateScale(Single, Single, Single)

Creates a new scale matrix.

CreateTranslation(Single, Single, Single)

Creates a new 3D translation matrix.

Determinant()

Calculates the determinant of the matrix.

Equals(Object)

Determines whether this matrix is equal to another object.

Equals(SKMatrix44)

Determines whether this matrix is equal to another matrix.

FromColumnMajor(ReadOnlySpan<Single>)

Creates a matrix from values in column-major order.

FromRowMajor(ReadOnlySpan<Single>)

Creates a matrix from values in row-major order.

GetHashCode()

Returns the hash code for this matrix.

Invert()

Creates an inverted matrix from the current matrix.

MapPoint(Single, Single, Single)

Transforms a 3D point using this matrix.

MapPoint(Single, Single)

Transforms a 2D point using this matrix.

MapPoint(SKPoint)

Applies the matrix to a point.

MapPoint(SKPoint3)

Transforms a 3D point using this matrix.

Multiply(SKMatrix44, Single)

Multiplies a matrix by a scalar value.

Multiply(SKMatrix44, SKMatrix44)

Multiplies two matrices and returns the result.

Negate(SKMatrix44)

Negates a matrix by multiplying all elements by -1.

PostConcat(SKMatrix44)

Post-concatenates the current matrix with the specified matrix.

PreConcat(SKMatrix44)

Pre-concatenates the matrix with the specified matrix.

Subtract(SKMatrix44, SKMatrix44)

Subtracts two matrices and returns the result.

ToColumnMajor()

Converts the current matrix to a column-major array.

ToColumnMajor(Span<Single>)

Copies the matrix values to a span in column-major order.

ToRowMajor()

Converts the current matrix to a row-major array.

ToRowMajor(Span<Single>)

Copies the matrix values to a span in row-major order.

Transpose()

Transposes the current matrix.

TryInvert(SKMatrix44)

Attempts to invert the matrix.

Operators

Name Description
Addition(SKMatrix44, SKMatrix44)

Adds two matrices.

Equality(SKMatrix44, SKMatrix44)

Determines whether two matrices are equal.

Implicit(Matrix4x4 to SKMatrix44)

Converts a Matrix4x4 to an SKMatrix44.

Implicit(SKMatrix to SKMatrix44)

Converts an SKMatrix to an SKMatrix44.

Implicit(SKMatrix44 to Matrix4x4)

Converts an SKMatrix44 to a Matrix4x4.

Inequality(SKMatrix44, SKMatrix44)

Determines whether two matrices are not equal.

Multiply(SKMatrix44, Single)

Multiplies a matrix by a scalar value.

Multiply(SKMatrix44, SKMatrix44)

Multiplies two matrices.

Subtraction(SKMatrix44, SKMatrix44)

Subtracts two matrices.

UnaryNegation(SKMatrix44)

Negates a matrix.

Applies to