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.
m11The value to assign to the first element in the first row.m12The value to assign to the second element in the first row.m21The value to assign to the first element in the second row.m22The value to assign to the second element in the second row.m31The value to assign to the first element in the third row.m32The 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.
value1The first matrix.value2The 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.
radiansThe 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.
radiansThe amount of rotation, in radians.centerPointThe center point.- Returns The rotation matrix.
public static Matrix3x2 CreateScale( Vector2 scales )
Creates a scaling matrix from the specified vector scale.
scalesThe 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.
scalesThe scale to use.centerPointThe center offset.- Returns The scaling matrix.
public static Matrix3x2 CreateScale( float scale )
Creates a scaling matrix that scales uniformly with the given scale.
scaleThe 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.
scaleThe uniform scale to use.centerPointThe 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.
xScaleThe value to scale by on the X axis.yScaleThe 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.
xScaleThe value to scale by on the X axis.yScaleThe value to scale by on the Y axis.centerPointThe center point.- Returns The scaling matrix.
public static Matrix3x2 CreateSkew( float radiansX, float radiansY )
Creates a skew matrix from the specified angles in radians.
radiansXThe X angle, in radians.radiansYThe 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.
radiansXThe X angle, in radians.radiansYThe Y angle, in radians.centerPointThe center point.- Returns The skew matrix.
public static Matrix3x2 CreateTranslation( Vector2 position )
Creates a translation matrix from the specified 2-dimensional vector.
positionThe 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.
xPositionThe X position.yPositionThe 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.
otherThe 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.
objThe 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.
matrixThe matrix to invert.resultWhen 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.
matrix1The first matrix.matrix2The second matrix.amountThe 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.
value1The first matrix.value2The 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.
value1The matrix to scale.value2The 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.
valueThe 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.
value1The first matrix.value2The 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.
value1The first matrix to compare.value2The 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.
value1The first matrix to compare.value2The 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.
value1The first matrix.value2The 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.
value1The matrix to scale.value2The 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.
value1The first matrix.value2The 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.
valueThe 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.
value1The first matrix.value2The 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.