Table of Contents

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

a IVector4
b IVector4
c IVector4
d IVector4

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 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 double

Properties

this[int]

DEPRECATED, PLEASE USE 'UINT' TYPES INSTEAD

public double this[int i] { get; set; }

Parameters

i int

Property Value

double

this[int, int]

DEPRECATED, PLEASE USE 'UINT' TYPES INSTEAD

public double this[int r, int c] { get; set; }

Parameters

r int
c int

Property Value

double

Methods

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetCol(int)

DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER

public Vector4 GetCol(int col)

Parameters

col int

Returns

Vector4

GetCol(uint)

DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER

public Vector4 GetCol(uint col)

Parameters

col uint

Returns

Vector4

GetEnumerator()

public IEnumerator<double> GetEnumerator()

Returns

IEnumerator<double>

GetHashCode()

public override int GetHashCode()

Returns

int

GetRow(int)

DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER

public Vector4 GetRow(int row)

Parameters

row int

Returns

Vector4

GetRow(uint)

DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER

public Vector4 GetRow(uint row)

Parameters

row uint

Returns

Vector4

SetCol(int, Vector4)

DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER

public void SetCol(int col, Vector4 src)

Parameters

col int
src Vector4

SetCol(uint, Vector4)

DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER

public void SetCol(uint col, Vector4 src)

Parameters

col uint
src Vector4

SetRow(int, Vector4)

DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER

public void SetRow(int row, Vector4 src)

Parameters

row int
src Vector4

SetRow(uint, Vector4)

DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER

public void SetRow(uint row, Vector4 src)

Parameters

row uint
src Vector4

ToString()

public override string ToString()

Returns

string

ToString(string)

public string ToString(string format)

Parameters

format string

Returns

string

Operators

operator +(Matrix4, Matrix4)

Returns the addition of a 'Matrix' with a 'Matrix'

public static Matrix4 operator +(Matrix4 a, Matrix4 b)

Parameters

a Matrix4
b Matrix4

Returns

Matrix4

operator +(Matrix4, double)

Returns the addition of a 'double' with a 'Matrix'

public static Matrix4 operator +(Matrix4 a, double b)

Parameters

a Matrix4
b double

Returns

Matrix4

operator +(double, Matrix4)

Returns the addition of a 'Matrix' with a 'double'

public static Matrix4 operator +(double a, Matrix4 b)

Parameters

a double
b Matrix4

Returns

Matrix4

operator /(Matrix4, double)

Returns the division of a 'double' with a 'Matrix'

public static Matrix4 operator /(Matrix4 a, double b)

Parameters

a Matrix4
b double

Returns

Matrix4

operator /(double, Matrix4)

Returns the division of a 'Matrix' with a 'double'

public static Matrix4 operator /(double a, Matrix4 b)

Parameters

a double
b Matrix4

Returns

Matrix4

operator ==(Matrix4, Matrix4)

Returns true if 'Matrix' is equal to 'Matrix'

public static bool operator ==(Matrix4 a, Matrix4 b)

Parameters

a Matrix4

The 1st 'Matrix'

b Matrix4

The 2nd 'Matrix'

Returns

bool

operator ==(Matrix4, double)

Returns true if 'Matrix' is equal to 'double'

public static bool operator ==(Matrix4 a, double b)

Parameters

a Matrix4

The 1st 'Matrix'

b double

The 2nd 'double'

Returns

bool

operator ==(double, Matrix4)

Returns true if 'double' is equal to 'Matrix'

public static bool operator ==(double a, Matrix4 b)

Parameters

a double

The 1st 'double'

b Matrix4

The 2nd 'Matrix'

Returns

bool

operator >(Matrix4, Matrix4)

Returns true if 'Matrix' is greater than 'Matrix'

public static bool operator >(Matrix4 a, Matrix4 b)

Parameters

a Matrix4

The 1st 'Matrix'

b Matrix4

The 2nd 'Matrix'

Returns

bool

operator >(Matrix4, double)

Returns true if 'Matrix' is greater than 'double'

public static bool operator >(Matrix4 a, double b)

Parameters

a Matrix4

The 1st 'Matrix'

b double

The 2nd 'double'

Returns

bool

operator >(double, Matrix4)

Returns true if 'double' is greater than 'Matrix'

public static bool operator >(double a, Matrix4 b)

Parameters

a double

The 1st 'double'

b Matrix4

The 2nd 'Matrix'

Returns

bool

operator >=(Matrix4, Matrix4)

Returns true if 'Matrix' is greater than or equal to 'Matrix'

public static bool operator >=(Matrix4 a, Matrix4 b)

Parameters

a Matrix4

The 1st 'Matrix'

b Matrix4

The 2nd 'Matrix'

Returns

bool

operator >=(Matrix4, double)

Returns true if 'Matrix' is greater than or equal to 'double'

public static bool operator >=(Matrix4 a, double b)

Parameters

a Matrix4

The 1st 'Matrix'

b double

The 2nd 'double'

Returns

bool

operator >=(double, Matrix4)

Returns true if 'double' is greater than or equal to 'Matrix'

public static bool operator >=(double a, Matrix4 b)

Parameters

a double

The 1st 'double'

b Matrix4

The 2nd 'Matrix'

Returns

bool

implicit operator Matrix4(Matrix)

Implicit cast 'Matrix' to 'Matrix4'

public static implicit operator Matrix4(Matrix a)

Parameters

a Matrix

Returns

Matrix4

operator !=(Matrix4, Matrix4)

Returns true if 'Matrix' is not equal to 'Matrix'

public static bool operator !=(Matrix4 a, Matrix4 b)

Parameters

a Matrix4

The 1st 'Matrix'

b Matrix4

The 2nd 'Matrix'

Returns

bool

operator !=(Matrix4, double)

Returns true if 'Matrix' is not equal to 'double'

public static bool operator !=(Matrix4 a, double b)

Parameters

a Matrix4

The 1st 'Matrix'

b double

The 2nd 'double'

Returns

bool

operator !=(double, Matrix4)

Returns true if 'double' is not equal to 'Matrix'

public static bool operator !=(double a, Matrix4 b)

Parameters

a double

The 1st 'double'

b Matrix4

The 2nd 'Matrix'

Returns

bool

operator <(Matrix4, Matrix4)

Returns true if 'Matrix' is less than 'Matrix'

public static bool operator <(Matrix4 a, Matrix4 b)

Parameters

a Matrix4

The 1st 'Matrix'

b Matrix4

The 2nd 'Matrix'

Returns

bool

operator <(Matrix4, double)

Returns true if 'Matrix' is less than 'double'

public static bool operator <(Matrix4 a, double b)

Parameters

a Matrix4

The 1st 'Matrix'

b double

The 2nd 'double'

Returns

bool

operator <(double, Matrix4)

Returns true if 'double' is less than 'Matrix'

public static bool operator <(double a, Matrix4 b)

Parameters

a double

The 1st 'double'

b Matrix4

The 2nd 'Matrix'

Returns

bool

operator <=(Matrix4, Matrix4)

Returns true if 'Matrix' is less than or equal to 'Matrix'

public static bool operator <=(Matrix4 a, Matrix4 b)

Parameters

a Matrix4

The 1st 'Matrix'

b Matrix4

The 2nd 'Matrix'

Returns

bool

operator <=(Matrix4, double)

Returns true if 'Matrix' is less than or equal to 'double'

public static bool operator <=(Matrix4 a, double b)

Parameters

a Matrix4

The 1st 'Matrix'

b double

The 2nd 'double'

Returns

bool

operator <=(double, Matrix4)

Returns true if 'double' is less than or equal to 'Matrix'

public static bool operator <=(double a, Matrix4 b)

Parameters

a double

The 1st 'double'

b Matrix4

The 2nd 'Matrix'

Returns

bool

operator *(Matrix4, Matrix4)

Returns the multiplication of a 'Matrix' with a 'Matrix'

public static Matrix4 operator *(Matrix4 a, Matrix4 b)

Parameters

a Matrix4
b Matrix4

Returns

Matrix4

operator *(Matrix4, Vector4)

public static Vector4 operator *(Matrix4 a, Vector4 b)

Parameters

a Matrix4
b Vector4

Returns

Vector4

operator *(Matrix4, double)

Returns the multiplication of a 'Matrix' with a 'double'

public static Matrix4 operator *(Matrix4 a, double b)

Parameters

a Matrix4
b double

Returns

Matrix4

operator *(Vector4, Matrix4)

Returns the multiplication of a 'Vector' with a 'Matrix'

public static Vector4 operator *(Vector4 a, Matrix4 b)

Parameters

a Vector4
b Matrix4

Returns

Vector4

operator *(double, Matrix4)

Returns the multiplication of a 'double' with a 'Matrix'

public static Matrix4 operator *(double a, Matrix4 b)

Parameters

a double
b Matrix4

Returns

Matrix4

operator -(Matrix4, Matrix4)

Returns the subtraction of a 'Matrix' with a 'Matrix'

public static Matrix4 operator -(Matrix4 a, Matrix4 b)

Parameters

a Matrix4
b Matrix4

Returns

Matrix4

operator -(Matrix4, double)

Returns the subtraction of a 'Matrix' with a 'double'

public static Matrix4 operator -(Matrix4 a, double b)

Parameters

a Matrix4
b double

Returns

Matrix4

operator -(double, Matrix4)

Returns the subtraction of a 'double' with a 'Matrix'

public static Matrix4 operator -(double a, Matrix4 b)

Parameters

a double
b Matrix4

Returns

Matrix4

operator -(Matrix4)

Returns the negation of a 'Matrix'

public static Matrix4 operator -(Matrix4 a)

Parameters

a Matrix4

Returns

Matrix4