Click or drag to resize

Matrix3x2 Structure

A structure encapsulating a 3x2 matrix.

Namespace:  Karamba.Geometry
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
[SerializableAttribute]
public struct Matrix3x2 : IEquatable<Matrix3x2>

The Matrix3x2 type exposes the following members.

Constructors
  NameDescription
Public methodMatrix3x2
Constructs a Matrix3x2 from the given components.
Top
Properties
  NameDescription
Public propertyStatic memberIdentity
Returns the multiplicative identity matrix.
Public propertyIsIdentity
Returns whether the matrix is the identity matrix.
Public propertyTranslation
Gets or sets the translation component of this matrix.
Top
Methods
  NameDescription
Public methodStatic memberAdd
Adds each matrix element in value1 with its corresponding element in value2.
Public methodStatic memberCreateRotation(Double)
Creates a rotation matrix using the given rotation in radians.
Public methodStatic memberCreateRotation(Double, Vector2)
Creates a rotation matrix using the given rotation in radians and a center point.
Public methodStatic memberCreateScale(Double)
Creates a scale matrix that scales uniformly with the given scale.
Public methodStatic memberCreateScale(Vector2)
Creates a scale matrix from the given vector scale.
Public methodStatic memberCreateScale(Double, Vector2)
Creates a scale matrix that scales uniformly with the given scale with an offset from the given center.
Public methodStatic memberCreateScale(Double, Double)
Creates a scale matrix from the given X and Y components.
Public methodStatic memberCreateScale(Vector2, Vector2)
Creates a scale matrix from the given vector scale with an offset from the given center point.
Public methodStatic memberCreateScale(Double, Double, Vector2)
Creates a scale matrix that is offset by a given center point.
Public methodStatic memberCreateSkew(Double, Double)
Creates a skew matrix from the given angles in radians.
Public methodStatic memberCreateSkew(Double, Double, Vector2)
Creates a skew matrix from the given angles in radians and a center point.
Public methodStatic memberCreateTranslation(Vector2)
Creates a translation matrix from the given vector.
Public methodStatic memberCreateTranslation(Double, Double)
Creates a translation matrix from the given X and Y components.
Public methodEquals(Object)
Returns a boolean indicating whether the given Object is equal to this matrix instance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Matrix3x2)
Returns a boolean indicating whether the matrix is equal to the other given matrix.
Public methodGetDeterminant
Calculates the determinant for this matrix. The determinant is calculated by expanding the matrix with a third column whose values are (0,0,1).
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberInvert
Attempts to invert the given matrix. If the operation succeeds, the inverted matrix is stored in the result parameter.
Public methodStatic memberLerp
Linearly interpolates from matrix1 to matrix2, based on the third parameter.
Public methodStatic memberMultiply(Matrix3x2, Matrix3x2)
Multiplies two matrices together and returns the resulting matrix.
Public methodStatic memberMultiply(Matrix3x2, Double)
Scales all elements in a matrix by the given scalar factor.
Public methodStatic memberNegate
Negates the given matrix by multiplying all values by -1.
Public methodStatic memberSubtract
Subtracts each matrix element in value2 from its corresponding element in value1.
Public methodToString
Returns a String representing this matrix instance.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds each matrix element in value1 with its corresponding element in value2.
Public operatorStatic memberEquality
Returns a boolean indicating whether the given matrices are equal.
Public operatorStatic memberInequality
Returns a boolean indicating whether the given matrices are not equal.
Public operatorStatic memberMultiply(Matrix3x2, Matrix3x2)
Multiplies two matrices together and returns the resulting matrix.
Public operatorStatic memberMultiply(Matrix3x2, Double)
Scales all elements in a matrix by the given scalar factor.
Public operatorStatic memberSubtraction
Subtracts each matrix element in value2 from its corresponding element in value1.
Public operatorStatic memberUnaryNegation
Negates the given matrix by multiplying all values by -1.
Top
Fields
  NameDescription
Public fieldM11
The first element of the first row
Public fieldM12
The second element of the first row
Public fieldM21
The first element of the second row
Public fieldM22
The second element of the second row
Public fieldM31
The first element of the third row
Public fieldM32
The second element of the third row
Top
See Also