|
The Open Toolkit library
1.0
|
Represents a 4x2 matrix. More...
Inherits IEquatable< Matrix4x2d >.
Public Member Functions | |
| Matrix4x2d (Vector2d row0, Vector2d row1, Vector2d row2, Vector2d row3) | |
| Constructs a new instance. More... | |
| Matrix4x2d (double m00, double m01, double m10, double m11, double m20, double m21, double m30, double m31) | |
| Constructs a new instance More... | |
| override string | ToString () |
| Returns a System.String that represents the current Matrix3d. More... | |
| override int | GetHashCode () |
| Returns the hashcode for this instance. More... | |
| override bool | Equals (object obj) |
| Indicates whether this instance and a specified object are equal. More... | |
| bool | Equals (Matrix4x2d other) |
| Indicates whether the current matrix is equal to another matrix. More... | |
Static Public Member Functions | |
| static void | CreateRotation (double angle, out Matrix4x2d result) |
| Builds a rotation matrix. More... | |
| static Matrix4x2d | CreateRotation (double angle) |
| Builds a rotation matrix. More... | |
| static void | CreateScale (double scale, out Matrix4x2d result) |
| Creates a scale matrix. More... | |
| static Matrix4x2d | CreateScale (double scale) |
| Creates a scale matrix. More... | |
| static void | CreateScale (Vector2d scale, out Matrix4x2d result) |
| Creates a scale matrix. More... | |
| static Matrix4x2d | CreateScale (Vector2d scale) |
| Creates a scale matrix. More... | |
| static void | CreateScale (double x, double y, out Matrix4x2d result) |
| Creates a scale matrix. More... | |
| static Matrix4x2d | CreateScale (double x, double y) |
| Creates a scale matrix. More... | |
| static void | Mult (ref Matrix4x2d left, double right, out Matrix4x2d result) |
| Multiplies and instance by a scalar. More... | |
| static Matrix4x2d | Mult (Matrix4x2d left, double right) |
| Multiplies and instance by a scalar. More... | |
| static void | Mult (ref Matrix4x2d left, ref Matrix2d right, out Matrix4x2d result) |
| Multiplies two instances. More... | |
| static Matrix4x2d | Mult (Matrix4x2d left, Matrix2d right) |
| Multiplies two instances. More... | |
| static void | Mult (ref Matrix4x2d left, ref Matrix2x3d right, out Matrix4x3d result) |
| Multiplies two instances. More... | |
| static Matrix4x3d | Mult (Matrix4x2d left, Matrix2x3d right) |
| Multiplies two instances. More... | |
| static void | Mult (ref Matrix4x2d left, ref Matrix2x4d right, out Matrix4d result) |
| Multiplies two instances. More... | |
| static Matrix4d | Mult (Matrix4x2d left, Matrix2x4d right) |
| Multiplies two instances. More... | |
| static void | Add (ref Matrix4x2d left, ref Matrix4x2d right, out Matrix4x2d result) |
| Adds two instances. More... | |
| static Matrix4x2d | Add (Matrix4x2d left, Matrix4x2d right) |
| Adds two instances. More... | |
| static void | Subtract (ref Matrix4x2d left, ref Matrix4x2d right, out Matrix4x2d result) |
| Subtracts two instances. More... | |
| static Matrix4x2d | Subtract (Matrix4x2d left, Matrix4x2d right) |
| Subtracts two instances. More... | |
| static void | Transpose (ref Matrix4x2d mat, out Matrix2x4d result) |
| Calculate the transpose of the given matrix. More... | |
| static Matrix2x4d | Transpose (Matrix4x2d mat) |
| Calculate the transpose of the given matrix. More... | |
| static Matrix4x2d | operator* (double left, Matrix4x2d right) |
| Scalar multiplication. More... | |
| static Matrix4x2d | operator* (Matrix4x2d left, double right) |
| Scalar multiplication. More... | |
| static Matrix4x2d | operator* (Matrix4x2d left, Matrix2d right) |
| Matrix multiplication More... | |
| static Matrix4x3d | operator* (Matrix4x2d left, Matrix2x3d right) |
| Matrix multiplication More... | |
| static Matrix4d | operator* (Matrix4x2d left, Matrix2x4d right) |
| Matrix multiplication More... | |
| static Matrix4x2d | operator+ (Matrix4x2d left, Matrix4x2d right) |
| Matrix addition More... | |
| static Matrix4x2d | operator- (Matrix4x2d left, Matrix4x2d right) |
| Matrix subtraction More... | |
| static bool | operator== (Matrix4x2d left, Matrix4x2d right) |
| Compares two instances for equality. More... | |
| static bool | operator!= (Matrix4x2d left, Matrix4x2d right) |
| Compares two instances for inequality. More... | |
Public Attributes | |
| Vector2d | Row0 |
| Top row of the matrix. More... | |
| Vector2d | Row1 |
| Second row of the matrix. More... | |
| Vector2d | Row2 |
| Third row of the matrix. More... | |
| Vector2d | Row3 |
| Bottom row of the matrix. More... | |
Static Public Attributes | |
| static readonly Matrix4x2d | Zero = new Matrix4x2d(Vector2d.Zero, Vector2d.Zero, Vector2d.Zero, Vector2d.Zero) |
| The zero matrix. More... | |
Properties | |
| Vector4d | Column0 [get, set] |
| Gets or sets the first column of this matrix. More... | |
| Vector4d | Column1 [get, set] |
| Gets or sets the second column of this matrix. More... | |
| double | M11 [get, set] |
| Gets or sets the value at row 1, column 1 of this instance. More... | |
| double | M12 [get, set] |
| Gets or sets the value at row 1, column 2 of this instance. More... | |
| double | M21 [get, set] |
| Gets or sets the value at row 2, column 1 of this instance. More... | |
| double | M22 [get, set] |
| Gets or sets the value at row 2, column 2 of this instance. More... | |
| double | M31 [get, set] |
| Gets or sets the value at row 3, column 1 of this instance. More... | |
| double | M32 [get, set] |
| Gets or sets the value at row 3, column 2 of this instance. More... | |
| double | M41 [get, set] |
| Gets or sets the value at row 4, column 1 of this instance. More... | |
| double | M42 [get, set] |
| Gets or sets the value at row 4, column 2 of this instance. More... | |
| Vector2d | Diagonal [get, set] |
| Gets or sets the values along the main diagonal of the matrix. More... | |
| double | Trace [get] |
| Gets the trace of the matrix, the sum of the values along the diagonal. More... | |
| double | this[int rowIndex, int columnIndex] [get, set] |
| Gets or sets the value at a specified row and column. More... | |
Represents a 4x2 matrix.
Constructs a new instance.
| row0 | Top row of the matrix. |
| row1 | Second row of the matrix. |
| row2 | Third row of the matrix. |
| row3 | Bottom row of the matrix. |
| OpenTK.Matrix4x2d.Matrix4x2d | ( | double | m00, |
| double | m01, | ||
| double | m10, | ||
| double | m11, | ||
| double | m20, | ||
| double | m21, | ||
| double | m30, | ||
| double | m31 | ||
| ) |
Constructs a new instance
| m00 | First item of the first row of the matrix. |
| m01 | Second item of the first row of the matrix. |
| m10 | First item of the second row of the matrix. |
| m11 | Second item of the second row of the matrix. |
| m20 | First item of the third row of the matrix. |
| m21 | Second item of the third row of the matrix. |
| m30 | First item of the fourth row of the matrix. |
| m31 | Second item of the fourth row of the matrix. |
|
static |
Adds two instances.
| left | The left operand of the addition. |
| right | The right operand of the addition. |
| result | A new instance that is the result of the addition. |
|
static |
Adds two instances.
| left | The left operand of the addition. |
| right | The right operand of the addition. |
|
static |
Builds a rotation matrix.
| angle | The counter-clockwise angle in radians. |
| result | The resulting Matrix3x2 instance. |
|
static |
Builds a rotation matrix.
| angle | The counter-clockwise angle in radians. |
|
static |
Creates a scale matrix.
| scale | Single scale factor for the x, y, and z axes. |
| result | A scale matrix. |
|
static |
Creates a scale matrix.
| scale | Single scale factor for the x and y axes. |
|
static |
Creates a scale matrix.
| scale | Scale factors for the x and y axes. |
| result | A scale matrix. |
|
static |
Creates a scale matrix.
| scale | Scale factors for the x and y axes. |
|
static |
Creates a scale matrix.
| x | Scale factor for the x axis. |
| y | Scale factor for the y axis. |
| result | A scale matrix. |
|
static |
Creates a scale matrix.
| x | Scale factor for the x axis. |
| y | Scale factor for the y axis. |
| override bool OpenTK.Matrix4x2d.Equals | ( | object | obj | ) |
Indicates whether this instance and a specified object are equal.
| obj | The object to compare to. |
| bool OpenTK.Matrix4x2d.Equals | ( | Matrix4x2d | other | ) |
Indicates whether the current matrix is equal to another matrix.
| other | An matrix to compare with this matrix. |
| override int OpenTK.Matrix4x2d.GetHashCode | ( | ) |
Returns the hashcode for this instance.
|
static |
Multiplies and instance by a scalar.
| left | The left operand of the multiplication. |
| right | The right operand of the multiplication. |
| result | A new instance that is the result of the multiplication. |
|
static |
Multiplies and instance by a scalar.
| left | The left operand of the multiplication. |
| right | The right operand of the multiplication. |
|
static |
Multiplies two instances.
| left | The left operand of the multiplication. |
| right | The right operand of the multiplication. |
| result | A new instance that is the result of the multiplication. |
|
static |
Multiplies two instances.
| left | The left operand of the multiplication. |
| right | The right operand of the multiplication. |
|
static |
Multiplies two instances.
| left | The left operand of the multiplication. |
| right | The right operand of the multiplication. |
| result | A new instance that is the result of the multiplication. |
|
static |
Multiplies two instances.
| left | The left operand of the multiplication. |
| right | The right operand of the multiplication. |
|
static |
Multiplies two instances.
| left | The left operand of the multiplication. |
| right | The right operand of the multiplication. |
| result | A new instance that is the result of the multiplication. |
|
static |
Multiplies two instances.
| left | The left operand of the multiplication. |
| right | The right operand of the multiplication. |
|
static |
Compares two instances for inequality.
| left | The first instance. |
| right | The second instance. |
|
static |
Scalar multiplication.
| left | left-hand operand |
| right | right-hand operand |
|
static |
Scalar multiplication.
| left | left-hand operand |
| right | right-hand operand |
|
static |
Matrix multiplication
| left | left-hand operand |
| right | right-hand operand |
|
static |
Matrix multiplication
| left | left-hand operand |
| right | right-hand operand |
|
static |
Matrix multiplication
| left | left-hand operand |
| right | right-hand operand |
|
static |
Matrix addition
| left | left-hand operand |
| right | right-hand operand |
|
static |
Matrix subtraction
| left | left-hand operand |
| right | right-hand operand |
|
static |
Compares two instances for equality.
| left | The first instance. |
| right | The second instance. |
|
static |
Subtracts two instances.
| left | The left operand of the subtraction. |
| right | The right operand of the subtraction. |
| result | A new instance that is the result of the subtraction. |
|
static |
Subtracts two instances.
| left | The left operand of the subtraction. |
| right | The right operand of the subtraction. |
| override string OpenTK.Matrix4x2d.ToString | ( | ) |
Returns a System.String that represents the current Matrix3d.
|
static |
Calculate the transpose of the given matrix.
| mat | The matrix to transpose. |
| result | The transpose of the given matrix. |
|
static |
Calculate the transpose of the given matrix.
| mat | The matrix to transpose. |
| Vector2d OpenTK.Matrix4x2d.Row0 |
Top row of the matrix.
| Vector2d OpenTK.Matrix4x2d.Row1 |
Second row of the matrix.
| Vector2d OpenTK.Matrix4x2d.Row2 |
Third row of the matrix.
| Vector2d OpenTK.Matrix4x2d.Row3 |
Bottom row of the matrix.
|
static |
The zero matrix.
|
getset |
Gets or sets the first column of this matrix.
|
getset |
Gets or sets the second column of this matrix.
|
getset |
Gets or sets the values along the main diagonal of the matrix.
|
getset |
Gets or sets the value at row 1, column 1 of this instance.
|
getset |
Gets or sets the value at row 1, column 2 of this instance.
|
getset |
Gets or sets the value at row 2, column 1 of this instance.
|
getset |
Gets or sets the value at row 2, column 2 of this instance.
|
getset |
Gets or sets the value at row 3, column 1 of this instance.
|
getset |
Gets or sets the value at row 3, column 2 of this instance.
|
getset |
Gets or sets the value at row 4, column 1 of this instance.
|
getset |
Gets or sets the value at row 4, column 2 of this instance.
|
getset |
Gets or sets the value at a specified row and column.
|
get |
Gets the trace of the matrix, the sum of the values along the diagonal.