struct Matrix3x2

in global :: System . Numerics

Represents a 3x2 matrix.


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

Creates a 3x2 matrix from the specified components.

  • m11 The value to assign to the first element in the first row.
  • m12 The value to assign to the second element in the first row.
  • m21 The value to assign to the first element in the second row.
  • m22 The value to assign to the second element in the second row.
  • m31 The value to assign to the first element in the third row.
  • m32 The value to assign to the second element in the third row.

public static Matrix3x2 Add( Matrix3x2 value1, Matrix3x2 value2 )

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

  • value1 The first matrix.
  • value2 The second matrix.
  • Returns The matrix that contains the summed values of and .

public static Matrix3x2 CreateRotation( float radians )

Creates a rotation matrix using the given rotation in radians.

  • radians The amount of rotation, in radians.
  • Returns The rotation matrix.

public static Matrix3x2 CreateRotation( float radians, Vector2 centerPoint )

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

  • radians The amount of rotation, in radians.
  • centerPoint The center point.
  • Returns The rotation matrix.

public static Matrix3x2 CreateScale( Vector2 scales )

Creates a scaling matrix from the specified vector scale.

  • scales The scale to use.
  • Returns The scaling matrix.

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.

  • scales The scale to use.
  • centerPoint The center offset.
  • Returns The scaling matrix.

public static Matrix3x2 CreateScale( float scale )

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

  • scale The uniform scale to use.
  • Returns The scaling matrix.

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.

  • scale The uniform scale to use.
  • centerPoint The center offset.
  • Returns The scaling matrix.

public static Matrix3x2 CreateScale( float xScale, float yScale )

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

  • xScale The value to scale by on the X axis.
  • yScale The value to scale by on the Y axis.
  • Returns The scaling matrix.

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

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

  • xScale The value to scale by on the X axis.
  • yScale The value to scale by on the Y axis.
  • centerPoint The center point.
  • Returns The scaling matrix.

public static Matrix3x2 CreateSkew( float radiansX, float radiansY )

Creates a skew matrix from the specified angles in radians.

  • radiansX The X angle, in radians.
  • radiansY The Y angle, in radians.
  • Returns The skew matrix.

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

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

  • radiansX The X angle, in radians.
  • radiansY The Y angle, in radians.
  • centerPoint The center point.
  • Returns The skew matrix.

public static Matrix3x2 CreateTranslation( Vector2 position )

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

  • position The translation position.
  • Returns The translation matrix.

public static Matrix3x2 CreateTranslation( float xPosition, float yPosition )

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

  • xPosition The X position.
  • yPosition The Y position.
  • Returns The translation matrix.

public bool Equals( Matrix3x2 other )

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

  • other The other matrix.
  • Returns if the two matrices are equal; otherwise, .

public bool Equals( object obj )

Returns a value that indicates whether this instance and a specified object are equal.

  • obj The object to compare with the current instance.
  • Returns if the current instance and are equal; otherwise, . If is , the method returns .

public static Matrix3x2 Identity { get; }

Gets the multiplicative identity matrix.

  • Returns The multiplicative identify matrix.

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

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

  • matrix The matrix to invert.
  • result When this method returns, contains the inverted matrix if the operation succeeded.
  • Returns if was converted successfully; otherwise, .

public bool IsIdentity { get; }

Indicates whether the current matrix is the identity matrix.

  • Returns if the current matrix is the identity matrix; otherwise, .

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.

  • matrix1 The first matrix.
  • matrix2 The second matrix.
  • amount The relative weighting of .
  • Returns The interpolated 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 Multiply( Matrix3x2 value1, Matrix3x2 value2 )

Returns the matrix that results from multiplying two matrices together.

  • value1 The first matrix.
  • value2 The second matrix.
  • Returns The product matrix.

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.

  • value1 The matrix to scale.
  • value2 The scaling value to use.
  • Returns The scaled matrix.

public static Matrix3x2 Negate( Matrix3x2 value )

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

  • value The matrix to negate.
  • Returns The negated matrix.

public static Matrix3x2 op_Addition( Matrix3x2 value1, Matrix3x2 value2 )

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

  • value1 The first matrix.
  • value2 The second matrix.
  • Returns The matrix that contains the summed values.

public static bool op_Equality( Matrix3x2 value1, Matrix3x2 value2 )

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

  • value1 The first matrix to compare.
  • value2 The second matrix to compare.
  • Returns if and are equal; otherwise, .

public static bool op_Inequality( Matrix3x2 value1, Matrix3x2 value2 )

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

  • value1 The first matrix to compare.
  • value2 The second matrix to compare.
  • Returns if and are not equal; otherwise, .

public static Matrix3x2 op_Multiply( Matrix3x2 value1, Matrix3x2 value2 )

Returns the matrix that results from multiplying two matrices together.

  • value1 The first matrix.
  • value2 The second matrix.
  • Returns The product matrix.

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.

  • value1 The matrix to scale.
  • value2 The scaling value to use.
  • Returns The scaled matrix.

public static Matrix3x2 op_Subtraction( Matrix3x2 value1, Matrix3x2 value2 )

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

  • value1 The first matrix.
  • value2 The second matrix.
  • Returns The matrix containing the values that result from subtracting each element in from its corresponding element in .

public static Matrix3x2 op_UnaryNegation( Matrix3x2 value )

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

  • value The matrix to negate.
  • Returns The negated matrix.

public static Matrix3x2 Subtract( Matrix3x2 value1, Matrix3x2 value2 )

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

  • value1 The first matrix.
  • value2 The second matrix.
  • Returns The matrix containing the values that result from subtracting each element in from its corresponding element in .

public Vector2 Translation { get; set; }

Gets or sets the translation component of this matrix.

  • Returns The translation component of the current instance.

public Type GetType( )

😔 No documentation found.

public float Item { get; set; }

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public float GetDeterminant( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.