Class Matrix2d
Namespace: g3
Assembly: cs.temp.dll.dll
Syntax
Constructors
Matrix2d(Vector2d, Vector2d)
Declaration
public Matrix2d(Vector2d u, Vector2d v)
Parameters
Matrix2d(Vector2d, Vector2d, Boolean)
Declaration
public Matrix2d(Vector2d u, Vector2d v, bool columns)
Parameters
Matrix2d(Boolean)
Declaration
public Matrix2d(bool bIdentity)
Parameters
Type |
Name |
Description |
Boolean |
bIdentity |
|
Matrix2d(Double, Boolean)
Declaration
public Matrix2d(double angle, bool bDegrees = false)
Parameters
Matrix2d(Double, Double)
Declaration
public Matrix2d(double m00, double m11)
Parameters
Matrix2d(Double, Double, Double, Double)
Declaration
public Matrix2d(double m00, double m01, double m10, double m11)
Parameters
Fields
Identity
Declaration
public static readonly Matrix2d Identity
Field Value
m00
Declaration
Field Value
m01
Declaration
Field Value
m10
Declaration
Field Value
m11
Declaration
Field Value
One
Declaration
public static readonly Matrix2d One
Field Value
Zero
Declaration
public static readonly Matrix2d Zero
Field Value
Properties
Determinant
Declaration
public double Determinant { get; }
Property Value
Item[Int32, Int32]
Declaration
public double this[int r, int c] { get; }
Parameters
Property Value
Methods
Adjoint()
Declaration
public Matrix2d Adjoint()
Returns
Column(Int32)
Declaration
public Vector2d Column(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
EigenDecomposition(ref Matrix2d, ref Matrix2d)
Declaration
public void EigenDecomposition(ref Matrix2d rot, ref Matrix2d diag)
Parameters
Declaration
public double ExtractAngle()
Returns
Inverse(Double)
Declaration
public Matrix2d Inverse(double epsilon = 0)
Parameters
Type |
Name |
Description |
Double |
epsilon |
|
Returns
Orthonormalize()
Declaration
public void Orthonormalize()
Declaration
public double QForm(Vector2d u, Vector2d v)
Parameters
Returns
Row(Int32)
Declaration
public Vector2d Row(int i)
Parameters
Type |
Name |
Description |
Int32 |
i |
|
Returns
SetToDiagonal(Double, Double)
Declaration
public void SetToDiagonal(double m00, double m11)
Parameters
SetToRotationDeg(Double)
Declaration
public void SetToRotationDeg(double angleDeg)
Parameters
Type |
Name |
Description |
Double |
angleDeg |
|
SetToRotationRad(Double)
Declaration
public void SetToRotationRad(double angleRad)
Parameters
Type |
Name |
Description |
Double |
angleRad |
|
Transpose()
Declaration
public Matrix2d Transpose()
Returns
Operators
Addition(Matrix2d, Matrix2d)
Declaration
public static Matrix2d operator +(Matrix2d a, Matrix2d o)
Parameters
Returns
Addition(Matrix2d, Double)
Declaration
public static Matrix2d operator +(Matrix2d a, double f)
Parameters
Returns
Division(Matrix2d, Double)
Declaration
public static Matrix2d operator /(Matrix2d a, double f)
Parameters
Returns
Multiply(Matrix2d, Vector2d)
Declaration
public static Vector2d operator *(Matrix2d m, Vector2d v)
Parameters
Returns
Multiply(Matrix2d, Double)
Declaration
public static Matrix2d operator *(Matrix2d a, double f)
Parameters
Returns
Multiply(Vector2d, Matrix2d)
Declaration
public static Vector2d operator *(Vector2d v, Matrix2d m)
Parameters
Returns
Multiply(Double, Matrix2d)
Declaration
public static Matrix2d operator *(double f, Matrix2d a)
Parameters
Returns
Subtraction(Matrix2d, Matrix2d)
Declaration
public static Matrix2d operator -(Matrix2d a, Matrix2d o)
Parameters
Returns
Subtraction(Matrix2d, Double)
Declaration
public static Matrix2d operator -(Matrix2d a, double f)
Parameters
Returns
UnaryNegation(Matrix2d)
Declaration
public static Matrix2d operator -(Matrix2d v)
Parameters
Returns