MeshLib C# Docs
Loading...
Searching...
No Matches
MR.Matrix4d Struct Reference

arbitrary 4x4 matrix Generated from class MR.Matrix4d. This is the by-value version of the struct. More...

+ Inheritance diagram for MR.Matrix4d:

Public Member Functions

 Matrix4d (Matrix4d _other)
 Generated copy constructor.
 
unsafe Matrix4d ()
 Constructs an empty (default-constructed) instance.
 
unsafe Matrix4d (in MR.Vector4d x, in MR.Vector4d y, in MR.Vector4d z, in MR.Vector4d w)
 initializes matrix from 4 row-vectors Generated from constructor MR.Matrix4d.Matrix4d.
 
unsafe Matrix4d (in MR.Matrix3d r, in MR.Vector3d t)
 construct from rotation matrix and translation vector Generated from constructor MR.Matrix4d.Matrix4d.
 
unsafe Matrix4d (in MR.AffineXf3d xf)
 Generated from constructor MR.Matrix4d.Matrix4d.
 
readonly unsafe double call_Const (int row, int col)
 element access Generated from method MR.Matrix4d.operator().
 
unsafe ref double call (int row, int col)
 Generated from method MR.Matrix4d.operator().
 
unsafe ref MR.Vector4d index (int row)
 Generated from method MR.Matrix4d.operator[].
 
readonly unsafe MR.Vector4d col (int i)
 column access Generated from method MR.Matrix4d.col.
 
readonly unsafe double trace ()
 computes trace of the matrix Generated from method MR.Matrix4d.trace.
 
readonly unsafe double normSq ()
 compute sum of squared matrix elements Generated from method MR.Matrix4d.normSq.
 
readonly unsafe double norm ()
 Generated from method MR.Matrix4d.norm.
 
readonly unsafe MR.Matrix3d submatrix3 (int i, int j)
 computes submatrix of the matrix with excluded i-th row and j-th column Generated from method MR.Matrix4d.submatrix3.
 
readonly unsafe double det ()
 computes determinant of the matrix Generated from method MR.Matrix4d.det.
 
readonly unsafe MR.Matrix4d inverse ()
 computes inverse matrix Generated from method MR.Matrix4d.inverse.
 
readonly unsafe MR.Matrix4d transposed ()
 computes transposed matrix Generated from method MR.Matrix4d.transposed.
 
readonly unsafe MR.Matrix3d getRotation ()
 Generated from method MR.Matrix4d.getRotation.
 
unsafe void setRotation (in MR.Matrix3d rot)
 Generated from method MR.Matrix4d.setRotation.
 
readonly unsafe MR.Vector3d getTranslation ()
 Generated from method MR.Matrix4d.getTranslation.
 
unsafe void setTranslation (in MR.Vector3d t)
 Generated from method MR.Matrix4d.setTranslation.
 
unsafe MR.Misc.? Ref< double > data ()
 Generated from method MR.Matrix4d.data.
 
readonly unsafe? double data_Const ()
 Generated from method MR.Matrix4d.data.
 
readonly unsafe MR.Vector3d call (in MR.Vector3d b)
 converts 3d-vector b in 4d-vector (b,1), multiplies matrix on it, and assuming the result is in homogeneous coordinates returns it as 3d-vector Generated from method MR.Matrix4d.operator().
 
unsafe ref MR.Matrix4d addAssign (in MR.Matrix4d b)
 Generated from function MR.operator+=.
 
unsafe ref MR.Matrix4d subAssign (in MR.Matrix4d b)
 Generated from function MR.operator-=.
 
unsafe ref MR.Matrix4d mulAssign (double b)
 Generated from function MR.operator*=.
 
unsafe ref MR.Matrix4d divAssign (double b)
 Generated from function MR.operator/=.
 
bool Equals (MR.Matrix4d b)
 
override bool Equals (object? other)
 

Static Public Member Functions

static implicit operator Matrix4d (ConstBox_Matrix4d other)
 Copy contents from a wrapper class to this struct.
 
static unsafe implicit operator Matrix4d (in MR.AffineXf3d xf)
 Generated from constructor MR.Matrix4d.Matrix4d.
 
static unsafe implicit operator MR.AffineXf3d (MR.Matrix4d _this)
 Generated from conversion operator MR.Matrix4d.operator MR.AffineXf3d.
 
static MR.Matrix4d zero ()
 Generated from method MR.Matrix4d.zero.
 
static MR.Matrix4d identity ()
 Generated from method MR.Matrix4d.identity.
 
static MR.Matrix4d scale (double s)
 returns a matrix that scales uniformly Generated from method MR.Matrix4d.scale.
 
static unsafe bool operator== (MR.Matrix4d a, MR.Matrix4d b)
 Generated from function MR.operator==.
 
static unsafe bool operator!= (MR.Matrix4d a, MR.Matrix4d b)
 
static unsafe MR.Matrix4d operator+ (MR.Matrix4d a, in MR.Matrix4d b)
 Generated from function MR.operator+.
 
static unsafe MR.Matrix4d operator- (MR.Matrix4d a, in MR.Matrix4d b)
 Generated from function MR.operator-.
 
static unsafe MR.Matrix4d operator* (double a, MR.Matrix4d b)
 Generated from function MR.operator*.
 
static unsafe MR.Matrix4d operator* (MR.Matrix4d b, double a)
 Generated from function MR.operator*.
 
static MR.Matrix4d operator/ (MR.Matrix4d b, double a)
 Generated from function MR.operator/.
 
static unsafe MR.Vector4d operator* (MR.Matrix4d a, in MR.Vector4d b)
 x = a * b Generated from function MR.operator*.
 
static unsafe MR.Matrix4d operator* (MR.Matrix4d a, in MR.Matrix4d b)
 product of two matrices Generated from function MR.operator*.
 

Public Attributes

MR.Vector4d x
 rows, identity matrix by default
 
MR.Vector4d y
 
MR.Vector4d z
 
MR.Vector4d w
 

Properties

readonly unsafe ref readonly MR.Vector4d this[int row] [get]
 row access Generated from method MR.Matrix4d.operator[].
 

Detailed Description

arbitrary 4x4 matrix Generated from class MR.Matrix4d. This is the by-value version of the struct.

Constructor & Destructor Documentation

◆ Matrix4d() [1/5]

MR.Matrix4d.Matrix4d ( Matrix4d _other)
inline

Generated copy constructor.

◆ Matrix4d() [2/5]

unsafe MR.Matrix4d.Matrix4d ( )
inline

Constructs an empty (default-constructed) instance.

◆ Matrix4d() [3/5]

unsafe MR.Matrix4d.Matrix4d ( in MR.Vector4d x,
in MR.Vector4d y,
in MR.Vector4d z,
in MR.Vector4d w )
inline

initializes matrix from 4 row-vectors Generated from constructor MR.Matrix4d.Matrix4d.

◆ Matrix4d() [4/5]

unsafe MR.Matrix4d.Matrix4d ( in MR.Matrix3d r,
in MR.Vector3d t )
inline

construct from rotation matrix and translation vector Generated from constructor MR.Matrix4d.Matrix4d.

◆ Matrix4d() [5/5]

unsafe MR.Matrix4d.Matrix4d ( in MR.AffineXf3d xf)
inline

Generated from constructor MR.Matrix4d.Matrix4d.

Member Function Documentation

◆ addAssign()

unsafe ref MR.Matrix4d MR.Matrix4d.addAssign ( in MR.Matrix4d b)
inline

Generated from function MR.operator+=.

◆ call() [1/2]

readonly unsafe MR.Vector3d MR.Matrix4d.call ( in MR.Vector3d b)
inline

converts 3d-vector b in 4d-vector (b,1), multiplies matrix on it, and assuming the result is in homogeneous coordinates returns it as 3d-vector Generated from method MR.Matrix4d.operator().

◆ call() [2/2]

unsafe ref double MR.Matrix4d.call ( int row,
int col )
inline

Generated from method MR.Matrix4d.operator().

◆ call_Const()

readonly unsafe double MR.Matrix4d.call_Const ( int row,
int col )
inline

element access Generated from method MR.Matrix4d.operator().

◆ col()

readonly unsafe MR.Vector4d MR.Matrix4d.col ( int i)
inline

column access Generated from method MR.Matrix4d.col.

◆ data()

unsafe MR.Misc.? Ref< double > MR.Matrix4d.data ( )
inline

Generated from method MR.Matrix4d.data.

◆ data_Const()

readonly unsafe? double MR.Matrix4d.data_Const ( )
inline

Generated from method MR.Matrix4d.data.

◆ det()

readonly unsafe double MR.Matrix4d.det ( )
inline

computes determinant of the matrix Generated from method MR.Matrix4d.det.

◆ divAssign()

unsafe ref MR.Matrix4d MR.Matrix4d.divAssign ( double b)
inline

Generated from function MR.operator/=.

◆ Equals() [1/2]

bool MR.Matrix4d.Equals ( MR.Matrix4d b)
inline

◆ Equals() [2/2]

override bool MR.Matrix4d.Equals ( object? other)
inline

◆ getRotation()

readonly unsafe MR.Matrix3d MR.Matrix4d.getRotation ( )
inline

Generated from method MR.Matrix4d.getRotation.

◆ getTranslation()

readonly unsafe MR.Vector3d MR.Matrix4d.getTranslation ( )
inline

Generated from method MR.Matrix4d.getTranslation.

◆ identity()

static MR.Matrix4d MR.Matrix4d.identity ( )
inlinestatic

Generated from method MR.Matrix4d.identity.

◆ index()

unsafe ref MR.Vector4d MR.Matrix4d.index ( int row)
inline

Generated from method MR.Matrix4d.operator[].

◆ inverse()

readonly unsafe MR.Matrix4d MR.Matrix4d.inverse ( )
inline

computes inverse matrix Generated from method MR.Matrix4d.inverse.

◆ mulAssign()

unsafe ref MR.Matrix4d MR.Matrix4d.mulAssign ( double b)
inline

Generated from function MR.operator*=.

◆ norm()

readonly unsafe double MR.Matrix4d.norm ( )
inline

Generated from method MR.Matrix4d.norm.

◆ normSq()

readonly unsafe double MR.Matrix4d.normSq ( )
inline

compute sum of squared matrix elements Generated from method MR.Matrix4d.normSq.

◆ operator Matrix4d() [1/2]

static implicit MR.Matrix4d.operator Matrix4d ( ConstBox_Matrix4d other)
static

Copy contents from a wrapper class to this struct.

◆ operator Matrix4d() [2/2]

static unsafe implicit MR.Matrix4d.operator Matrix4d ( in MR.AffineXf3d xf)
inlinestatic

Generated from constructor MR.Matrix4d.Matrix4d.

◆ operator MR.AffineXf3d()

static unsafe implicit MR.Matrix4d.operator MR.AffineXf3d ( MR.Matrix4d _this)
inlinestatic

Generated from conversion operator MR.Matrix4d.operator MR.AffineXf3d.

◆ operator!=()

static unsafe bool MR.Matrix4d.operator!= ( MR.Matrix4d a,
MR.Matrix4d b )
inlinestatic

◆ operator*() [1/4]

static unsafe MR.Matrix4d MR.Matrix4d.operator* ( double a,
MR.Matrix4d b )
inlinestatic

Generated from function MR.operator*.

◆ operator*() [2/4]

static unsafe MR.Matrix4d MR.Matrix4d.operator* ( MR.Matrix4d a,
in MR.Matrix4d b )
inlinestatic

product of two matrices Generated from function MR.operator*.

◆ operator*() [3/4]

static unsafe MR.Vector4d MR.Matrix4d.operator* ( MR.Matrix4d a,
in MR.Vector4d b )
inlinestatic

x = a * b Generated from function MR.operator*.

◆ operator*() [4/4]

static unsafe MR.Matrix4d MR.Matrix4d.operator* ( MR.Matrix4d b,
double a )
inlinestatic

Generated from function MR.operator*.

◆ operator+()

static unsafe MR.Matrix4d MR.Matrix4d.operator+ ( MR.Matrix4d a,
in MR.Matrix4d b )
inlinestatic

Generated from function MR.operator+.

◆ operator-()

static unsafe MR.Matrix4d MR.Matrix4d.operator- ( MR.Matrix4d a,
in MR.Matrix4d b )
inlinestatic

Generated from function MR.operator-.

◆ operator/()

static MR.Matrix4d MR.Matrix4d.operator/ ( MR.Matrix4d b,
double a )
inlinestatic

Generated from function MR.operator/.

◆ operator==()

static unsafe bool MR.Matrix4d.operator== ( MR.Matrix4d a,
MR.Matrix4d b )
inlinestatic

Generated from function MR.operator==.

◆ scale()

static MR.Matrix4d MR.Matrix4d.scale ( double s)
inlinestatic

returns a matrix that scales uniformly Generated from method MR.Matrix4d.scale.

◆ setRotation()

unsafe void MR.Matrix4d.setRotation ( in MR.Matrix3d rot)
inline

Generated from method MR.Matrix4d.setRotation.

◆ setTranslation()

unsafe void MR.Matrix4d.setTranslation ( in MR.Vector3d t)
inline

Generated from method MR.Matrix4d.setTranslation.

◆ subAssign()

unsafe ref MR.Matrix4d MR.Matrix4d.subAssign ( in MR.Matrix4d b)
inline

Generated from function MR.operator-=.

◆ submatrix3()

readonly unsafe MR.Matrix3d MR.Matrix4d.submatrix3 ( int i,
int j )
inline

computes submatrix of the matrix with excluded i-th row and j-th column Generated from method MR.Matrix4d.submatrix3.

◆ trace()

readonly unsafe double MR.Matrix4d.trace ( )
inline

computes trace of the matrix Generated from method MR.Matrix4d.trace.

◆ transposed()

readonly unsafe MR.Matrix4d MR.Matrix4d.transposed ( )
inline

computes transposed matrix Generated from method MR.Matrix4d.transposed.

◆ zero()

static MR.Matrix4d MR.Matrix4d.zero ( )
inlinestatic

Generated from method MR.Matrix4d.zero.

Member Data Documentation

◆ w

MR.Vector4d MR.Matrix4d.w

◆ x

MR.Vector4d MR.Matrix4d.x

rows, identity matrix by default

◆ y

MR.Vector4d MR.Matrix4d.y

◆ z

MR.Vector4d MR.Matrix4d.z

Property Documentation

◆ this[int row]

readonly unsafe ref readonly MR.Vector4d MR.Matrix4d.this[int row]
get

row access Generated from method MR.Matrix4d.operator[].


The documentation for this struct was generated from the following file: