Table of Contents

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

a IVector3
b IVector3
c IVector3

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

a double
b double
c double
d double
e double
f double
g double
h double
i 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

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

bool

GetCol(int)

DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER

public Vector3 GetCol(int col)

Parameters

col int

Returns

Vector3

GetCol(uint)

DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER

public Vector3 GetCol(uint col)

Parameters

col uint

Returns

Vector3

GetEnumerator()

public IEnumerator<double> GetEnumerator()

Returns

IEnumerator<double>

GetHashCode()

public override int GetHashCode()

Returns

int

GetRow(int)

DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER

public Vector3 GetRow(int row)

Parameters

row int

Returns

Vector3

GetRow(uint)

DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER

public Vector3 GetRow(uint row)

Parameters

row uint

Returns

Vector3

Map(Matrix, Func<double, double, double>)

Map a 'Matrix' value in this matrix

public void Map(Matrix a, Func<double, double, double> func)

Parameters

a Matrix

the value to map

func Func<double, double, double>

the map function

Map(Func<double, double>)

Map all values in this matrix

public void Map(Func<double, double> func)

Parameters

func Func<double, double>

the map function

Map(Func<double, int, double>)

Map all values in this matrix

public void Map(Func<double, int, double> func)

Parameters

func Func<double, int, double>

the map function

Map(Func<double, int, int, double>)

Map all values in this matrix

public void Map(Func<double, int, int, double> func)

Parameters

func Func<double, int, int, double>

the map function

PitchDCM(double)

Create rotation matrix about "X" axis (radians)

public static Matrix3 PitchDCM(double radians)

Parameters

radians double

Returns

Matrix3

RollDCM(double)

Create rotation matrix about "Y" axis (radians)

public static Matrix3 RollDCM(double radians)

Parameters

radians double

Returns

Matrix3

SetCol(int, Vector3)

DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER

public void SetCol(int col, Vector3 src)

Parameters

col int
src Vector3

SetCol(uint, Vector3)

DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER

public void SetCol(uint col, Vector3 src)

Parameters

col uint
src Vector3

SetRow(int, Vector3)

DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER

public void SetRow(int row, Vector3 src)

Parameters

row int
src Vector3

SetRow(uint, Vector3)

DEPRECATED, PLEASE USE 'IMATRICES' CLASS WRAPPER

public void SetRow(uint row, Vector3 src)

Parameters

row uint
src Vector3

ToString()

public override string ToString()

Returns

string

ToString(string)

public string ToString(string format)

Parameters

format string

Returns

string

YawDCM(double)

Create rotation matrix about "Z" axis (radians)

public static Matrix3 YawDCM(double radians)

Parameters

radians double

Returns

Matrix3

Operators

operator +(Matrix3, Matrix3)

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

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

Parameters

a Matrix3
b Matrix3

Returns

Matrix3

operator +(Matrix3, double)

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

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

Parameters

a Matrix3
b double

Returns

Matrix3

operator +(double, Matrix3)

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

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

Parameters

a double
b Matrix3

Returns

Matrix3

operator /(Matrix3, double)

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

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

Parameters

a Matrix3
b double

Returns

Matrix3

operator /(double, Matrix3)

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

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

Parameters

a double
b Matrix3

Returns

Matrix3

operator ==(Matrix3, Matrix3)

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

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

Parameters

a Matrix3

The 1st 'Matrix'

b Matrix3

The 2nd 'Matrix'

Returns

bool

operator ==(Matrix3, double)

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

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

Parameters

a Matrix3

The 1st 'Matrix'

b double

The 2nd 'double'

Returns

bool

operator ==(double, Matrix3)

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

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

Parameters

a double

The 1st 'double'

b Matrix3

The 2nd 'Matrix'

Returns

bool

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

a Matrix3

The 1st 'Matrix'

b Matrix3

The 2nd 'Matrix'

Returns

bool

operator >(Matrix3, double)

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

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

Parameters

a Matrix3

The 1st 'Matrix'

b double

The 2nd 'double'

Returns

bool

operator >(double, Matrix3)

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

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

Parameters

a double

The 1st 'double'

b Matrix3

The 2nd 'Matrix'

Returns

bool

operator >=(Matrix3, Matrix3)

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

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

Parameters

a Matrix3

The 1st 'Matrix'

b Matrix3

The 2nd 'Matrix'

Returns

bool

operator >=(Matrix3, double)

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

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

Parameters

a Matrix3

The 1st 'Matrix'

b double

The 2nd 'double'

Returns

bool

operator >=(double, Matrix3)

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

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

Parameters

a double

The 1st 'double'

b Matrix3

The 2nd 'Matrix'

Returns

bool

implicit operator Matrix3(Matrix)

Implicit cast 'Matrix' to 'Matrix3'

public static implicit operator Matrix3(Matrix a)

Parameters

a Matrix

Returns

Matrix3

operator !=(Matrix3, Matrix3)

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

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

Parameters

a Matrix3

The 1st 'Matrix'

b Matrix3

The 2nd 'Matrix'

Returns

bool

operator !=(Matrix3, double)

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

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

Parameters

a Matrix3

The 1st 'Matrix'

b double

The 2nd 'double'

Returns

bool

operator !=(double, Matrix3)

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

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

Parameters

a double

The 1st 'double'

b Matrix3

The 2nd 'Matrix'

Returns

bool

operator <(Matrix3, Matrix3)

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

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

Parameters

a Matrix3

The 1st 'Matrix'

b Matrix3

The 2nd 'Matrix'

Returns

bool

operator <(Matrix3, double)

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

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

Parameters

a Matrix3

The 1st 'Matrix'

b double

The 2nd 'double'

Returns

bool

operator <(double, Matrix3)

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

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

Parameters

a double

The 1st 'double'

b Matrix3

The 2nd 'Matrix'

Returns

bool

operator <=(Matrix3, Matrix3)

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

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

Parameters

a Matrix3

The 1st 'Matrix'

b Matrix3

The 2nd 'Matrix'

Returns

bool

operator <=(Matrix3, double)

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

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

Parameters

a Matrix3

The 1st 'Matrix'

b double

The 2nd 'double'

Returns

bool

operator <=(double, Matrix3)

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

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

Parameters

a double

The 1st 'double'

b Matrix3

The 2nd 'Matrix'

Returns

bool

operator *(Matrix3, Matrix3)

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

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

Parameters

a Matrix3
b Matrix3

Returns

Matrix3

operator *(Matrix3, Vector3)

public static Vector3 operator *(Matrix3 a, Vector3 b)

Parameters

a Matrix3
b Vector3

Returns

Vector3

operator *(Matrix3, double)

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

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

Parameters

a Matrix3
b double

Returns

Matrix3

operator *(Vector3, Matrix3)

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

public static Vector3 operator *(Vector3 a, Matrix3 b)

Parameters

a Vector3
b Matrix3

Returns

Vector3

operator *(double, Matrix3)

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

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

Parameters

a double
b Matrix3

Returns

Matrix3

operator -(Matrix3, Matrix3)

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

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

Parameters

a Matrix3
b Matrix3

Returns

Matrix3

operator -(Matrix3, double)

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

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

Parameters

a Matrix3
b double

Returns

Matrix3

operator -(double, Matrix3)

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

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

Parameters

a double
b Matrix3

Returns

Matrix3

operator -(Matrix3)

Returns the negation of a 'Matrix'

public static Matrix3 operator -(Matrix3 a)

Parameters

a Matrix3

Returns

Matrix3