CVB.Net 14.0
AffineMatrix3D Struct Reference

Compacted affine matrix for 3D operations. More...

Inherits IEquatable< AffineMatrix3D >.

Public Member Functions

 AffineMatrix3D (Matrix3D matrix, Point3Dd translation)
 Constructor. More...
 
override bool Equals (object obj)
 Indicates whether this instance and the given obj are equal. More...
 
bool Equals (AffineMatrix3D t2)
 Gets whether this and the other t2 object are equal. More...
 
override int GetHashCode ()
 Returns the hash code for this instance. More...
 
override string ToString ()
 String conversion. More...
 

Static Public Member Functions

static AffineMatrix3D operator* (AffineMatrix3D lhs, AffineMatrix3D rhs)
 Compose two affine matrices by multiplying them. More...
 

Properties

static AffineMatrix3D Identity [get]
 The identity element.
 
Point3Dd Translation [get, set]
 The translation part of the transformation.
 
Matrix3D Matrix [get, set]
 The matrix part of the transformation.
 
double this[int row, int column] [get, set]
 Index access. More...
 

Detailed Description

Compacted affine matrix for 3D operations.

The fourth line is assumed to be 0, 0, 0, 1.

Constructor & Destructor Documentation

◆ AffineMatrix3D()

AffineMatrix3D ( Matrix3D  matrix,
Point3Dd  translation 
)

Constructor.

Parameters
matrixMatrix to use.
translationTranslation to use.

Member Function Documentation

◆ Equals() [1/2]

bool Equals ( AffineMatrix3D  t2)

Gets whether this and the other t2 object are equal.

Parameters
t2Object to compre to.
Returns
true if t2 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 AffineMatrix3D operator* ( AffineMatrix3D  lhs,
AffineMatrix3D  rhs 
)
static

Compose two affine matrices by multiplying them.

Parameters
lhsleft hand side operand
rhsright hand side operand
Returns
composed AffineMatrix struct

◆ ToString()

override string ToString ( )

String conversion.

Returns
string representation of this affine matrix

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.