Class Matrix3
- Namespace
- NominalSystems.Maths
- Assembly
- NominalSystems.Maths.dll
[NominalSystems] A column-major 3x3 matrix class
public sealed class Matrix3 : IEnumerable<double>, IEnumerable
- Inheritance
-
Matrix3
- Implements
Constructors
Matrix3()
Create a identity 'Matrix3'
public Matrix3()
Matrix3(IVector3, IVector3, IVector3)
Create a row vector initialized 'Matrix3'
public Matrix3(IVector3 a, IVector3 b, IVector3 c)
Parameters
Matrix3(Matrix3)
Default copy constructor 'Matrix3'
public Matrix3(Matrix3 a)
Parameters
a
Matrix3
Matrix3(double)
Create a initialized 'Matrix3'
public Matrix3(double i)
Parameters
i
double
Matrix3(double, double, double, double, double, double, double, double, double)
Create a fully initialized 'Matrix3'
public Matrix3(double a, double b, double c, double d, double e, double f, double g, double h, double i)
Parameters
Properties
this[int]
DEPRECATED, PLEASE USE 'UINT' TYPES INSTEAD
public double this[int i] { get; set; }
Parameters
i
int
Property Value
this[int, int]
DEPRECATED, PLEASE USE 'UINT' TYPES INSTEAD
public double this[int r, int c] { get; set; }
Parameters
Property Value
Methods
Clear()
Clears all values from the data and sets the values to 0.0.
public void Clear()
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetCol(int)
DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER
public Vector3 GetCol(int col)
Parameters
col
int
Returns
GetCol(uint)
DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER
public Vector3 GetCol(uint col)
Parameters
col
uint
Returns
GetEnumerator()
public IEnumerator<double> GetEnumerator()
Returns
GetHashCode()
public override int GetHashCode()
Returns
GetRow(int)
DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER
public Vector3 GetRow(int row)
Parameters
row
int
Returns
GetRow(uint)
DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER
public Vector3 GetRow(uint row)
Parameters
row
uint
Returns
Map(Matrix, Func<double, double, double>)
Map a 'Matrix' value in this matrix
public void Map(Matrix a, Func<double, double, double> func)
Parameters
Map(Func<double, double>)
Map all values in this matrix
public void Map(Func<double, double> func)
Parameters
Map(Func<double, int, double>)
Map all values in this matrix
public void Map(Func<double, int, double> func)
Parameters
Map(Func<double, int, int, double>)
Map all values in this matrix
public void Map(Func<double, int, int, double> func)
Parameters
PitchDCM(double)
Create rotation matrix about "X" axis (radians)
public static Matrix3 PitchDCM(double radians)
Parameters
radians
double
Returns
RollDCM(double)
Create rotation matrix about "Y" axis (radians)
public static Matrix3 RollDCM(double radians)
Parameters
radians
double
Returns
SetCol(int, Vector3)
DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER
public void SetCol(int col, Vector3 src)
Parameters
SetCol(uint, Vector3)
DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER
public void SetCol(uint col, Vector3 src)
Parameters
SetRow(int, Vector3)
DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER
public void SetRow(int row, Vector3 src)
Parameters
SetRow(uint, Vector3)
DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER
public void SetRow(uint row, Vector3 src)
Parameters
ToString()
public override string ToString()
Returns
ToString(string)
public string ToString(string format)
Parameters
format
string
Returns
YawDCM(double)
Create rotation matrix about "Z" axis (radians)
public static Matrix3 YawDCM(double radians)
Parameters
radians
double
Returns
Operators
operator +(Matrix3, Matrix3)
Returns the addition of a 'Matrix' with a 'Matrix'
public static Matrix3 operator +(Matrix3 a, Matrix3 b)
Parameters
Returns
operator +(Matrix3, double)
Returns the addition of a 'double' with a 'Matrix'
public static Matrix3 operator +(Matrix3 a, double b)
Parameters
Returns
operator +(double, Matrix3)
Returns the addition of a 'Matrix' with a 'double'
public static Matrix3 operator +(double a, Matrix3 b)
Parameters
Returns
operator /(Matrix3, double)
Returns the division of a 'double' with a 'Matrix'
public static Matrix3 operator /(Matrix3 a, double b)
Parameters
Returns
operator /(double, Matrix3)
Returns the division of a 'Matrix' with a 'double'
public static Matrix3 operator /(double a, Matrix3 b)
Parameters
Returns
operator ==(Matrix3, Matrix3)
Returns true if 'Matrix' is equal to 'Matrix'
public static bool operator ==(Matrix3 a, Matrix3 b)
Parameters
Returns
operator ==(Matrix3, double)
Returns true if 'Matrix' is equal to 'double'
public static bool operator ==(Matrix3 a, double b)
Parameters
Returns
operator ==(double, Matrix3)
Returns true if 'double' is equal to 'Matrix'
public static bool operator ==(double a, Matrix3 b)
Parameters
Returns
explicit operator double[,](Matrix3)
Explicit cast 'Matrix3' to 'double[,]'
public static explicit operator double[,](Matrix3 a)
Parameters
a
Matrix3
Returns
- double[,]
operator >(Matrix3, Matrix3)
Returns true if 'Matrix' is greater than 'Matrix'
public static bool operator >(Matrix3 a, Matrix3 b)
Parameters
Returns
operator >(Matrix3, double)
Returns true if 'Matrix' is greater than 'double'
public static bool operator >(Matrix3 a, double b)
Parameters
Returns
operator >(double, Matrix3)
Returns true if 'double' is greater than 'Matrix'
public static bool operator >(double a, Matrix3 b)
Parameters
Returns
operator >=(Matrix3, Matrix3)
Returns true if 'Matrix' is greater than or equal to 'Matrix'
public static bool operator >=(Matrix3 a, Matrix3 b)
Parameters
Returns
operator >=(Matrix3, double)
Returns true if 'Matrix' is greater than or equal to 'double'
public static bool operator >=(Matrix3 a, double b)
Parameters
Returns
operator >=(double, Matrix3)
Returns true if 'double' is greater than or equal to 'Matrix'
public static bool operator >=(double a, Matrix3 b)
Parameters
Returns
implicit operator Matrix3(Matrix)
Implicit cast 'Matrix' to 'Matrix3'
public static implicit operator Matrix3(Matrix a)
Parameters
a
Matrix
Returns
operator !=(Matrix3, Matrix3)
Returns true if 'Matrix' is not equal to 'Matrix'
public static bool operator !=(Matrix3 a, Matrix3 b)
Parameters
Returns
operator !=(Matrix3, double)
Returns true if 'Matrix' is not equal to 'double'
public static bool operator !=(Matrix3 a, double b)
Parameters
Returns
operator !=(double, Matrix3)
Returns true if 'double' is not equal to 'Matrix'
public static bool operator !=(double a, Matrix3 b)
Parameters
Returns
operator <(Matrix3, Matrix3)
Returns true if 'Matrix' is less than 'Matrix'
public static bool operator <(Matrix3 a, Matrix3 b)
Parameters
Returns
operator <(Matrix3, double)
Returns true if 'Matrix' is less than 'double'
public static bool operator <(Matrix3 a, double b)
Parameters
Returns
operator <(double, Matrix3)
Returns true if 'double' is less than 'Matrix'
public static bool operator <(double a, Matrix3 b)
Parameters
Returns
operator <=(Matrix3, Matrix3)
Returns true if 'Matrix' is less than or equal to 'Matrix'
public static bool operator <=(Matrix3 a, Matrix3 b)
Parameters
Returns
operator <=(Matrix3, double)
Returns true if 'Matrix' is less than or equal to 'double'
public static bool operator <=(Matrix3 a, double b)
Parameters
Returns
operator <=(double, Matrix3)
Returns true if 'double' is less than or equal to 'Matrix'
public static bool operator <=(double a, Matrix3 b)
Parameters
Returns
operator *(Matrix3, Matrix3)
Returns the multiplication of a 'Matrix' with a 'Matrix'
public static Matrix3 operator *(Matrix3 a, Matrix3 b)
Parameters
Returns
operator *(Matrix3, Vector3)
public static Vector3 operator *(Matrix3 a, Vector3 b)
Parameters
Returns
operator *(Matrix3, double)
Returns the multiplication of a 'Matrix' with a 'double'
public static Matrix3 operator *(Matrix3 a, double b)
Parameters
Returns
operator *(Vector3, Matrix3)
Returns the multiplication of a 'Vector' with a 'Matrix'
public static Vector3 operator *(Vector3 a, Matrix3 b)
Parameters
Returns
operator *(double, Matrix3)
Returns the multiplication of a 'double' with a 'Matrix'
public static Matrix3 operator *(double a, Matrix3 b)
Parameters
Returns
operator -(Matrix3, Matrix3)
Returns the subtraction of a 'Matrix' with a 'Matrix'
public static Matrix3 operator -(Matrix3 a, Matrix3 b)
Parameters
Returns
operator -(Matrix3, double)
Returns the subtraction of a 'Matrix' with a 'double'
public static Matrix3 operator -(Matrix3 a, double b)
Parameters
Returns
operator -(double, Matrix3)
Returns the subtraction of a 'double' with a 'Matrix'
public static Matrix3 operator -(double a, Matrix3 b)
Parameters
Returns
operator -(Matrix3)
Returns the negation of a 'Matrix'
public static Matrix3 operator -(Matrix3 a)
Parameters
a
Matrix3