|
Programming Reference for VirtualLab Fusion
2022.1
|
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
This class defines a 3x3 Matrix of double numbers.
Operators ( \(a+b\), \(a-b\)). Operator ( \(a*b\)) supports \(b\) as double or VectorD as well.
More...
Public Member Functions | |
| double | Determinant () |
| Calculates the determinant of current Matrix3x3. More... | |
| override bool | Equals (object matrix) |
| Compares two matrices for equality. More... | |
| Vector3D | GetCol (int index) |
| Returns specified column current Matrix3x3 as VectorD. More... | |
| override int | GetHashCode () |
| Returns a hash code for this instance. More... | |
| Matrix3x3D | GetInverse () |
| Calculates the inverse Matrix3x3 of current one. More... | |
| Vector3D | GetRow (int index) |
| Returns specified row current Matrix3x3 as VectorD. More... | |
| Matrix3x3D | GetTransposed () |
| Returns transposed Matrix3x3 of current one. More... | |
| bool | IsIdentity () |
| Checks whether the matrix is the identity matrix. More... | |
| bool | IsIdentityNumericalChecks () |
| Checks whether the matrix is the identity matrix. More... | |
| bool | IsOrthogonal () |
| Checks if matrix is orthogonal, i.e. if M * M^T is the identity matrix More... | |
| Matrix3x3D () | |
| Standard constructor, creates an empty (all zero values) matrix. More... | |
| Matrix3x3D (double c) | |
| Constructor to get a diagonal matrix having constant value \(c\) on all diagonal elements. More... | |
| Matrix3x3D (double m11, double m21, double m31, double m12, double m22, double m32, double m13, double m23, double m33) | |
| Constructor taking nine doubles to initialize Matrix3x3. More... | |
| Matrix3x3D (Matrix3x3D matC) | |
| Copy constructor. More... | |
| Matrix3x3D (Vector3D firstCol, Vector3D secondCol, Vector3D thirdCol) | |
| Constructor taking three VectorD to initialize Matrix3x3. More... | |
| override string | ToString () |
| Returns an output string representing current Matrix3x3. More... | |
| string | ToString (int noOfDigits=-1) |
| Returns an output string representing current Matrix3x3. More... | |
| double | Trace () |
| Calculates the trace of this matrix. More... | |
Static Public Member Functions | |
| static Matrix3x3D | InverseMatrix (Matrix3x3D mat) |
| Calculates inverse current Matrix3x3 of the given one. More... | |
| static bool | operator!= (Matrix3x3D a, Matrix3x3D b) |
| Checks to matrices for inequality. More... | |
| static Matrix3x3D | operator* (double b, Matrix3x3D a) |
| Multiplies a Matrix3x3D with a scalar. More... | |
| static Matrix3x3D | operator* (Matrix3x3D a, double b) |
| Multiplies a Matrix3x3D with a scalar. More... | |
| static Matrix3x3D | operator* (Matrix3x3D a, Matrix3x3D b) |
| Multiplies the elements of two Matrix3x3D objects. More... | |
| static Vector3C | operator* (Matrix3x3D a, Vector3C vec) |
| Multiplies a Matrix with an 3-dim. complex Vector (A*Vec) More... | |
| static Vector3D | operator* (Matrix3x3D a, Vector3D vec) |
| Multiplies a Matrix with an 3-dim. Vector (A*Vec) More... | |
| static Matrix3x3D | operator+ (Matrix3x3D a, Matrix3x3D b) |
| Adds the elements of two Matrix3x3D objects. More... | |
| static Matrix3x3D | operator- (Matrix3x3D a, Matrix3x3D b) |
| Subtracts the elements of two Matrix3x3D objects. More... | |
| static bool | operator== (Matrix3x3D a, Matrix3x3D b) |
| Compares two matrices. Two matrices are equal when they are equal in all elements. More... | |
| static bool | TryParse (string matrixText, out Matrix3x3D matrix3x3D) |
| Tries to parse a Matrix3x3D object from a string. More... | |
Properties | |
| static Matrix3x3D | Identity [get] |
| Static property which gives the identity matrix. | |
| double | this[int row, int col] [get, set] |
| Gets or sets a certain matrix element. More... | |
This class is subject to change. Programs using this class may require changes with a new version of VirtualLab.
This class defines a 3x3 Matrix of double numbers.
Operators ( \(a+b\), \(a-b\)). Operator ( \(a*b\)) supports \(b\) as double or VectorD as well.
| Matrix3x3D | ( | ) |
Standard constructor, creates an empty (all zero values) matrix.
| Matrix3x3D | ( | double | c | ) |
Constructor to get a diagonal matrix having constant value \(c\) on all diagonal elements.
| c | Value \(c\) used to initialize diagonal elements. |
| Matrix3x3D | ( | Matrix3x3D | matC | ) |
Copy constructor.
| matC | Matrix3x3D to be copied. |
| Matrix3x3D | ( | Vector3D | firstCol, |
| Vector3D | secondCol, | ||
| Vector3D | thirdCol | ||
| ) |
Constructor taking three VectorD to initialize Matrix3x3.
| firstCol | First column. |
| secondCol | Second column. |
| thirdCol | Third column. |
| Matrix3x3D | ( | double | m11, |
| double | m21, | ||
| double | m31, | ||
| double | m12, | ||
| double | m22, | ||
| double | m32, | ||
| double | m13, | ||
| double | m23, | ||
| double | m33 | ||
| ) |
Constructor taking nine doubles to initialize Matrix3x3.
| m11 | First element of first column. |
| m21 | Second element of first column. |
| m31 | Third element of first column. |
| m12 | First element of second column. |
| m22 | Second element of second column. |
| m32 | Third element of second column. |
| m13 | First element of third column. |
| m23 | Second element of third column. |
| m33 | Third element of third column. |
| double Determinant | ( | ) |
Calculates the determinant of current Matrix3x3.
| override bool Equals | ( | object | matrix | ) |
Compares two matrices for equality.
| matrix | matrix to compare with |
True if the two matrices store the same values.| Vector3D GetCol | ( | int | index | ) |
Returns specified column current Matrix3x3 as VectorD.
| index | Column to return (index is one-based!). |
| override int GetHashCode | ( | ) |
Returns a hash code for this instance.
| Matrix3x3D GetInverse | ( | ) |
Calculates the inverse Matrix3x3 of current one.
| Vector3D GetRow | ( | int | index | ) |
Returns specified row current Matrix3x3 as VectorD.
| index | Row to return (index is one-based!). |
| Matrix3x3D GetTransposed | ( | ) |
Returns transposed Matrix3x3 of current one.
|
static |
Calculates inverse current Matrix3x3 of the given one.
| mat | Matrix3x3 to invert. |
| bool IsIdentity | ( | ) |
Checks whether the matrix is the identity matrix.
| bool IsIdentityNumericalChecks | ( | ) |
Checks whether the matrix is the identity matrix.
| bool IsOrthogonal | ( | ) |
Checks if matrix is orthogonal, i.e. if M * M^T is the identity matrix
|
static |
Checks to matrices for inequality.
| a | first matrix |
| b | second matrix |
|
static |
|
static |
|
static |
Multiplies the elements of two Matrix3x3D objects.
| a | the first matrix |
| b | the second matrix |
|
static |
|
static |
|
static |
Adds the elements of two Matrix3x3D objects.
| a | the first matrix |
| b | the second matrix |
|
static |
Subtracts the elements of two Matrix3x3D objects.
| a | the first matrix |
| b | the second matrix |
|
static |
Compares two matrices. Two matrices are equal when they are equal in all elements.
| a | first matrix |
| b | second matrix |
| override string ToString | ( | ) |
Returns an output string representing current Matrix3x3.
| string ToString | ( | int | noOfDigits = -1 | ) |
Returns an output string representing current Matrix3x3.
| double Trace | ( | ) |
Calculates the trace of this matrix.
|
static |
Tries to parse a Matrix3x3D object from a string.
| matrixText | String which have to be formatted like inside Marix3x3D.ToString() |
| matrix3x3D | The parsed matrix if parse has been possible. Null otherwise. |
|
getset |
Gets or sets a certain matrix element.
The selected matrix element.
| row | The zero-based row index. |
| col | The zero-based column index. |
| System.ArgumentOutOfRangeException | At least one of the two given indices is out of range. |