<PackageReference Include="System.Numerics.Vectors" Version="4.5.0-preview2-26406-04" />

System.Numerics.Matrix3x2

public struct Matrix3x2 : IEquatable<Matrix3x2>
Represents a 3x2 matrix.
public float M11

The first element of the first row.

public float M12

The second element of the first row.

public float M21

The first element of the second row.

public float M22

The second element of the second row.

public float M31

The first element of the third row.

public float M32

The second element of the third row.

public static Matrix3x2 Identity { get; }

Gets the multiplicative identity matrix.

public bool IsIdentity { get; }

Indicates whether the current matrix is the identity matrix.

public Vector2 Translation { get; set; }

Gets or sets the translation component of this matrix.

public Matrix3x2(float m11, float m12, float m21, float m22, float m31, float m32)

Creates a 3x2 matrix from the specified components.

public static Matrix3x2 Add(Matrix3x2 value1, Matrix3x2 value2)

Adds each element in one matrix with its corresponding element in a second matrix.

public static Matrix3x2 CreateRotation(float radians)

Creates a rotation matrix using the given rotation in radians.

public static Matrix3x2 CreateRotation(float radians, Vector2 centerPoint)

Creates a rotation matrix using the specified rotation in radians and a center point.

public static Matrix3x2 CreateScale(float xScale, float yScale)

Creates a scaling matrix from the specified X and Y components.

public static Matrix3x2 CreateScale(float xScale, float yScale, Vector2 centerPoint)

Creates a scaling matrix that is offset by a given center point.

public static Matrix3x2 CreateScale(Vector2 scales)

Creates a scaling matrix from the specified vector scale.

public static Matrix3x2 CreateScale(Vector2 scales, Vector2 centerPoint)

Creates a scaling matrix from the specified vector scale with an offset from the specified center point.

public static Matrix3x2 CreateScale(float scale)

Creates a scaling matrix that scales uniformly with the given scale.

public static Matrix3x2 CreateScale(float scale, Vector2 centerPoint)

Creates a scaling matrix that scales uniformly with the specified scale with an offset from the specified center.

public static Matrix3x2 CreateSkew(float radiansX, float radiansY)

Creates a skew matrix from the specified angles in radians.

public static Matrix3x2 CreateSkew(float radiansX, float radiansY, Vector2 centerPoint)

Creates a skew matrix from the specified angles in radians and a center point.

public static Matrix3x2 CreateTranslation(Vector2 position)

Creates a translation matrix from the specified 2-dimensional vector.

public static Matrix3x2 CreateTranslation(float xPosition, float yPosition)

Creates a translation matrix from the specified X and Y components.

public static bool Invert(Matrix3x2 matrix, out Matrix3x2 result)

Inverts the specified matrix. The return value indicates whether the operation succeeded.

public static Matrix3x2 Lerp(Matrix3x2 matrix1, Matrix3x2 matrix2, float amount)

Performs a linear interpolation from one matrix to a second matrix based on a value that specifies the weighting of the second matrix.

public static Matrix3x2 Multiply(Matrix3x2 value1, Matrix3x2 value2)

Returns the matrix that results from multiplying two matrices together.

public static Matrix3x2 Multiply(Matrix3x2 value1, float value2)

Returns the matrix that results from scaling all the elements of a specified matrix by a scalar factor.

public static Matrix3x2 Negate(Matrix3x2 value)

Negates the specified matrix by multiplying all its values by -1.

public static Matrix3x2 op_Addition(Matrix3x2 value1, Matrix3x2 value2)

Adds each element in one matrix with its corresponding element in a second matrix.

public static bool op_Equality(Matrix3x2 value1, Matrix3x2 value2)

Returns a value that indicates whether the specified matrices are equal.

public static bool op_Inequality(Matrix3x2 value1, Matrix3x2 value2)

Returns a value that indicates whether the specified matrices are not equal.

public static Matrix3x2 op_Multiply(Matrix3x2 value1, Matrix3x2 value2)

Returns the matrix that results from multiplying two matrices together.

public static Matrix3x2 op_Multiply(Matrix3x2 value1, float value2)

Returns the matrix that results from scaling all the elements of a specified matrix by a scalar factor.

public static Matrix3x2 op_Subtraction(Matrix3x2 value1, Matrix3x2 value2)

Subtracts each element in a second matrix from its corresponding element in a first matrix.

public static Matrix3x2 op_UnaryNegation(Matrix3x2 value)

Negates the specified matrix by multiplying all its values by -1.

public static Matrix3x2 Subtract(Matrix3x2 value1, Matrix3x2 value2)

Subtracts each element in a second matrix from its corresponding element in a first matrix.

public bool Equals(Matrix3x2 other)

Returns a value that indicates whether this instance and another 3x2 matrix are equal.

public float GetDeterminant()

Calculates the determinant for this matrix.