CVB.Net 14.0
Matrix3DH Struct Reference

Double precision 4x4 matrix struct. More...

Inherits IEquatable< Matrix3DH >.

Public Member Functions

 Matrix3DH (double[] row1, double[] row2, double[] row3, double[] row4)
 Constructor. More...
 
 Matrix3DH (double a11, double a12, double a13, double a14, double a21, double a22, double a23, double a24, double a31, double a32, double a33, double a34, double a41, double a42, double a43, double a44)
 Constructor. More...
 
 Matrix3DH (Matrix3D matrix)
 Constructor. More...
 
override bool Equals (object obj)
 Indicates whether this instance and the given obj are equal. More...
 
bool Equals (Matrix3DH obj)
 Indicates whether this instance and the given obj are equal. More...
 
override int GetHashCode ()
 Returns the hash code for this instance. More...
 

Static Public Member Functions

static Matrix3DH operator+ (Matrix3DH lhs, Matrix3DH rhs)
 Addition operator. More...
 
static Matrix3DH operator- (Matrix3DH lhs, Matrix3DH rhs)
 Subtraction operator. More...
 
static Matrix3DH operator* (Matrix3DH lhs, Matrix3DH rhs)
 Multiplication operator. More...
 
static bool operator== (Matrix3DH lhs, Matrix3DH rhs)
 Equality comparison operator. More...
 
static bool operator!= (Matrix3DH lhs, Matrix3DH rhs)
 Unequality comparison operator. More...
 

Properties

static Matrix3DH Identity [get]
 The identity element.
 
double A11 [get, set]
 First top matrix element.
 
double A12 [get, set]
 Second top matrix element.
 
double A13 [get, set]
 Third top matrix element.
 
double A14 [get, set]
 Fourth top matrix element.
 
double A21 [get, set]
 First upper mid matrix element.
 
double A22 [get, set]
 Second upper mid matrix element.
 
double A23 [get, set]
 Third upper mid right matrix element.
 
double A24 [get, set]
 Fourth upper mid matrix element.
 
double A31 [get, set]
 First lower mid matrix element.
 
double A32 [get, set]
 Second lower mid matrix element.
 
double A33 [get, set]
 Third lower mid matrix element.
 
double A34 [get, set]
 Fourth lower mid matrix element.
 
double A41 [get, set]
 First bottom matrix element.
 
double A42 [get, set]
 Second bottom matrix element.
 
double A43 [get, set]
 Third bottom matrix element.
 
double A44 [get, set]
 Fourth bottom matrix element.
 
double this[int row, int column] [get, set]
 Index access. More...
 

Detailed Description

Double precision 4x4 matrix struct.

Constructor & Destructor Documentation

◆ Matrix3DH() [1/3]

Matrix3DH ( double[]  row1,
double[]  row2,
double[]  row3,
double[]  row4 
)

Constructor.

Parameters
row1First component row.
row2Second component row.
row3Third component row.
row4Fourth component row.
Exceptions
IndexOutOfRangeExceptionWhen one of the given rows has less than four values.
NullReferenceExceptionWhen one of the given rows is null.

◆ Matrix3DH() [2/3]

Matrix3DH ( double  a11,
double  a12,
double  a13,
double  a14,
double  a21,
double  a22,
double  a23,
double  a24,
double  a31,
double  a32,
double  a33,
double  a34,
double  a41,
double  a42,
double  a43,
double  a44 
)

Constructor.

Parameters
a11First top matrix element.
a12Second top matrix element.
a13Third top matrix element.
a14Fourth top matrix element.
a21First upper mid matrix element.
a22Second upper mid matrix element.
a23Third upper mid right matrix element.
a24Fourth upper mid matrix element.
a31First lower mid matrix element.
a32Second lower mid matrix element.
a33Third lower mid matrix element.
a34Fourth lower mid matrix element.
a41First bottom matrix element.
a42Second bottom matrix element.
a43Third bottom matrix element.
a44Fourth bottom matrix element.

◆ Matrix3DH() [3/3]

Matrix3DH ( Matrix3D  matrix)

Constructor.

Parameters
matrix3x3 matrix to create this 4x4 matrix from.

Member Function Documentation

◆ Equals() [1/2]

bool Equals ( Matrix3DH  obj)

Indicates whether this instance and the given obj are equal.

Parameters
objObject to compare to.
Returns
True if obj and this instance represent the same value; otherwise, false.

◆ Equals() [2/2]

override bool Equals ( object  obj)

Indicates whether this instance and the given obj are equal.

Parameters
objObject to compare to.
Returns
True if obj and this instance are the same type and represent the same value; otherwise, false.

◆ GetHashCode()

override int GetHashCode ( )

Returns the hash code for this instance.

Returns
A 32-bit signed integer that is the hash code for this instance.

◆ operator!=()

static bool operator!= ( Matrix3DH  lhs,
Matrix3DH  rhs 
)
static

Unequality comparison operator.

Parameters
lhsLeft hand side operand.
rhsRight hand side operand.
Returns
True if lhs != rhs , otherwise false.

◆ operator*()

static Matrix3DH operator* ( Matrix3DH  lhs,
Matrix3DH  rhs 
)
static

Multiplication operator.

Parameters
lhsLeft hand side operand.
rhsRight hand side operand.
Returns
Product of lhs and rhs .

◆ operator+()

static Matrix3DH operator+ ( Matrix3DH  lhs,
Matrix3DH  rhs 
)
static

Addition operator.

Parameters
lhsLeft hand side operand.
rhsRight hand side operand.
Returns
Sum of lhs and rhs .

◆ operator-()

static Matrix3DH operator- ( Matrix3DH  lhs,
Matrix3DH  rhs 
)
static

Subtraction operator.

Parameters
lhsLeft hand side operand.
rhsRight hand side operand.
Returns
Difference of lhs and rhs .

◆ operator==()

static bool operator== ( Matrix3DH  lhs,
Matrix3DH  rhs 
)
static

Equality comparison operator.

Parameters
lhsLeft hand side operand.
rhsRight hand side operand.
Returns
True if lhs == rhs , otherwise false.

Property Documentation

◆ this[int row, int column]

double this[int row, int column]
getset

Index access.

Parameters
rowThe row, or "Y" index to get.
columnThe column, or "X" index to get.
Returns
Value at the specified position.