Class Matrix4
- Namespace
- NominalSystems.Maths
- Assembly
- NominalSystems.Maths.dll
[NominalSystems] A column-major 4x4 matrix class
public sealed class Matrix4 : IEnumerable<double>, IEnumerable
- Inheritance
-
Matrix4
- Implements
Constructors
Matrix4()
Create a identity 'Matrix3'
public Matrix4()
Matrix4(IVector4, IVector4, IVector4, IVector4)
Create a row vector initialized 'Matrix4'
public Matrix4(IVector4 a, IVector4 b, IVector4 c, IVector4 d)
Parameters
Matrix4(Matrix4)
Default copy constructor 'Matrix4'
public Matrix4(Matrix4 a)
Parameters
a
Matrix4
Matrix4(double)
Create a initialized 'Matrix3'
public Matrix4(double i)
Parameters
i
double
Matrix4(double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double)
Create a fully initialized 'Matrix3'
public Matrix4(double a, double b, double c, double d, double e, double f, double g, double h, double i, double j, double k, double l, double m, double n, double o, double p)
Parameters
a
doubleb
doublec
doubled
doublee
doublef
doubleg
doubleh
doublei
doublej
doublek
doublel
doublem
doublen
doubleo
doublep
double
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
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetCol(int)
DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER
public Vector4 GetCol(int col)
Parameters
col
int
Returns
GetCol(uint)
DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER
public Vector4 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 Vector4 GetRow(int row)
Parameters
row
int
Returns
GetRow(uint)
DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER
public Vector4 GetRow(uint row)
Parameters
row
uint
Returns
SetCol(int, Vector4)
DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER
public void SetCol(int col, Vector4 src)
Parameters
SetCol(uint, Vector4)
DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER
public void SetCol(uint col, Vector4 src)
Parameters
SetRow(int, Vector4)
DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER
public void SetRow(int row, Vector4 src)
Parameters
SetRow(uint, Vector4)
DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER
public void SetRow(uint row, Vector4 src)
Parameters
ToString()
public override string ToString()
Returns
ToString(string)
public string ToString(string format)
Parameters
format
string
Returns
Operators
operator +(Matrix4, Matrix4)
Returns the addition of a 'Matrix' with a 'Matrix'
public static Matrix4 operator +(Matrix4 a, Matrix4 b)
Parameters
Returns
operator +(Matrix4, double)
Returns the addition of a 'double' with a 'Matrix'
public static Matrix4 operator +(Matrix4 a, double b)
Parameters
Returns
operator +(double, Matrix4)
Returns the addition of a 'Matrix' with a 'double'
public static Matrix4 operator +(double a, Matrix4 b)
Parameters
Returns
operator /(Matrix4, double)
Returns the division of a 'double' with a 'Matrix'
public static Matrix4 operator /(Matrix4 a, double b)
Parameters
Returns
operator /(double, Matrix4)
Returns the division of a 'Matrix' with a 'double'
public static Matrix4 operator /(double a, Matrix4 b)
Parameters
Returns
operator ==(Matrix4, Matrix4)
Returns true if 'Matrix' is equal to 'Matrix'
public static bool operator ==(Matrix4 a, Matrix4 b)
Parameters
Returns
operator ==(Matrix4, double)
Returns true if 'Matrix' is equal to 'double'
public static bool operator ==(Matrix4 a, double b)
Parameters
Returns
operator ==(double, Matrix4)
Returns true if 'double' is equal to 'Matrix'
public static bool operator ==(double a, Matrix4 b)
Parameters
Returns
operator >(Matrix4, Matrix4)
Returns true if 'Matrix' is greater than 'Matrix'
public static bool operator >(Matrix4 a, Matrix4 b)
Parameters
Returns
operator >(Matrix4, double)
Returns true if 'Matrix' is greater than 'double'
public static bool operator >(Matrix4 a, double b)
Parameters
Returns
operator >(double, Matrix4)
Returns true if 'double' is greater than 'Matrix'
public static bool operator >(double a, Matrix4 b)
Parameters
Returns
operator >=(Matrix4, Matrix4)
Returns true if 'Matrix' is greater than or equal to 'Matrix'
public static bool operator >=(Matrix4 a, Matrix4 b)
Parameters
Returns
operator >=(Matrix4, double)
Returns true if 'Matrix' is greater than or equal to 'double'
public static bool operator >=(Matrix4 a, double b)
Parameters
Returns
operator >=(double, Matrix4)
Returns true if 'double' is greater than or equal to 'Matrix'
public static bool operator >=(double a, Matrix4 b)
Parameters
Returns
implicit operator Matrix4(Matrix)
Implicit cast 'Matrix' to 'Matrix4'
public static implicit operator Matrix4(Matrix a)
Parameters
a
Matrix
Returns
operator !=(Matrix4, Matrix4)
Returns true if 'Matrix' is not equal to 'Matrix'
public static bool operator !=(Matrix4 a, Matrix4 b)
Parameters
Returns
operator !=(Matrix4, double)
Returns true if 'Matrix' is not equal to 'double'
public static bool operator !=(Matrix4 a, double b)
Parameters
Returns
operator !=(double, Matrix4)
Returns true if 'double' is not equal to 'Matrix'
public static bool operator !=(double a, Matrix4 b)
Parameters
Returns
operator <(Matrix4, Matrix4)
Returns true if 'Matrix' is less than 'Matrix'
public static bool operator <(Matrix4 a, Matrix4 b)
Parameters
Returns
operator <(Matrix4, double)
Returns true if 'Matrix' is less than 'double'
public static bool operator <(Matrix4 a, double b)
Parameters
Returns
operator <(double, Matrix4)
Returns true if 'double' is less than 'Matrix'
public static bool operator <(double a, Matrix4 b)
Parameters
Returns
operator <=(Matrix4, Matrix4)
Returns true if 'Matrix' is less than or equal to 'Matrix'
public static bool operator <=(Matrix4 a, Matrix4 b)
Parameters
Returns
operator <=(Matrix4, double)
Returns true if 'Matrix' is less than or equal to 'double'
public static bool operator <=(Matrix4 a, double b)
Parameters
Returns
operator <=(double, Matrix4)
Returns true if 'double' is less than or equal to 'Matrix'
public static bool operator <=(double a, Matrix4 b)
Parameters
Returns
operator *(Matrix4, Matrix4)
Returns the multiplication of a 'Matrix' with a 'Matrix'
public static Matrix4 operator *(Matrix4 a, Matrix4 b)
Parameters
Returns
operator *(Matrix4, Vector4)
public static Vector4 operator *(Matrix4 a, Vector4 b)
Parameters
Returns
operator *(Matrix4, double)
Returns the multiplication of a 'Matrix' with a 'double'
public static Matrix4 operator *(Matrix4 a, double b)
Parameters
Returns
operator *(Vector4, Matrix4)
Returns the multiplication of a 'Vector' with a 'Matrix'
public static Vector4 operator *(Vector4 a, Matrix4 b)
Parameters
Returns
operator *(double, Matrix4)
Returns the multiplication of a 'double' with a 'Matrix'
public static Matrix4 operator *(double a, Matrix4 b)
Parameters
Returns
operator -(Matrix4, Matrix4)
Returns the subtraction of a 'Matrix' with a 'Matrix'
public static Matrix4 operator -(Matrix4 a, Matrix4 b)
Parameters
Returns
operator -(Matrix4, double)
Returns the subtraction of a 'Matrix' with a 'double'
public static Matrix4 operator -(Matrix4 a, double b)
Parameters
Returns
operator -(double, Matrix4)
Returns the subtraction of a 'double' with a 'Matrix'
public static Matrix4 operator -(double a, Matrix4 b)
Parameters
Returns
operator -(Matrix4)
Returns the negation of a 'Matrix'
public static Matrix4 operator -(Matrix4 a)
Parameters
a
Matrix4