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

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

+ Inheritance diagram for MR.Matrix4f:

Public Member Functions

 Matrix4f (Matrix4f _other)
 Generated copy constructor.
 
unsafe Matrix4f ()
 Constructs an empty (default-constructed) instance.
 
unsafe Matrix4f (in MR.Vector4f x, in MR.Vector4f y, in MR.Vector4f z, in MR.Vector4f w)
 initializes matrix from 4 row-vectors Generated from constructor MR.Matrix4f.Matrix4f.
 
unsafe Matrix4f (in MR.Matrix3f r, in MR.Vector3f t)
 construct from rotation matrix and translation vector Generated from constructor MR.Matrix4f.Matrix4f.
 
unsafe Matrix4f (in MR.AffineXf3f xf)
 Generated from constructor MR.Matrix4f.Matrix4f.
 
readonly unsafe float call_Const (int row, int col)
 element access Generated from method MR.Matrix4f.operator().
 
unsafe ref float call (int row, int col)
 Generated from method MR.Matrix4f.operator().
 
unsafe ref MR.Vector4f index (int row)
 Generated from method MR.Matrix4f.operator[].
 
readonly unsafe MR.Vector4f col (int i)
 column access Generated from method MR.Matrix4f.col.
 
readonly unsafe float trace ()
 computes trace of the matrix Generated from method MR.Matrix4f.trace.
 
readonly unsafe float normSq ()
 compute sum of squared matrix elements Generated from method MR.Matrix4f.normSq.
 
readonly unsafe float norm ()
 Generated from method MR.Matrix4f.norm.
 
readonly unsafe MR.Matrix3f submatrix3 (int i, int j)
 computes submatrix of the matrix with excluded i-th row and j-th column Generated from method MR.Matrix4f.submatrix3.
 
readonly unsafe float det ()
 computes determinant of the matrix Generated from method MR.Matrix4f.det.
 
readonly unsafe MR.Matrix4f inverse ()
 computes inverse matrix Generated from method MR.Matrix4f.inverse.
 
readonly unsafe MR.Matrix4f transposed ()
 computes transposed matrix Generated from method MR.Matrix4f.transposed.
 
readonly unsafe MR.Matrix3f getRotation ()
 Generated from method MR.Matrix4f.getRotation.
 
unsafe void setRotation (in MR.Matrix3f rot)
 Generated from method MR.Matrix4f.setRotation.
 
readonly unsafe MR.Vector3f getTranslation ()
 Generated from method MR.Matrix4f.getTranslation.
 
unsafe void setTranslation (in MR.Vector3f t)
 Generated from method MR.Matrix4f.setTranslation.
 
unsafe MR.Misc.? Ref< float > data ()
 Generated from method MR.Matrix4f.data.
 
readonly unsafe? float data_Const ()
 Generated from method MR.Matrix4f.data.
 
readonly unsafe MR.Vector3f call (in MR.Vector3f 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.Matrix4f.operator().
 
unsafe ref MR.Matrix4f addAssign (in MR.Matrix4f b)
 Generated from function MR.operator+=.
 
unsafe ref MR.Matrix4f subAssign (in MR.Matrix4f b)
 Generated from function MR.operator-=.
 
unsafe ref MR.Matrix4f mulAssign (float b)
 Generated from function MR.operator*=.
 
unsafe ref MR.Matrix4f divAssign (float b)
 Generated from function MR.operator/=.
 
bool Equals (MR.Matrix4f b)
 
override bool Equals (object? other)
 

Static Public Member Functions

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

Public Attributes

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

Properties

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

Detailed Description

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

Constructor & Destructor Documentation

◆ Matrix4f() [1/5]

MR.Matrix4f.Matrix4f ( Matrix4f _other)
inline

Generated copy constructor.

◆ Matrix4f() [2/5]

unsafe MR.Matrix4f.Matrix4f ( )
inline

Constructs an empty (default-constructed) instance.

◆ Matrix4f() [3/5]

unsafe MR.Matrix4f.Matrix4f ( in MR.Vector4f x,
in MR.Vector4f y,
in MR.Vector4f z,
in MR.Vector4f w )
inline

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

◆ Matrix4f() [4/5]

unsafe MR.Matrix4f.Matrix4f ( in MR.Matrix3f r,
in MR.Vector3f t )
inline

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

◆ Matrix4f() [5/5]

unsafe MR.Matrix4f.Matrix4f ( in MR.AffineXf3f xf)
inline

Generated from constructor MR.Matrix4f.Matrix4f.

Member Function Documentation

◆ addAssign()

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

Generated from function MR.operator+=.

◆ call() [1/2]

readonly unsafe MR.Vector3f MR.Matrix4f.call ( in MR.Vector3f 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.Matrix4f.operator().

◆ call() [2/2]

unsafe ref float MR.Matrix4f.call ( int row,
int col )
inline

Generated from method MR.Matrix4f.operator().

◆ call_Const()

readonly unsafe float MR.Matrix4f.call_Const ( int row,
int col )
inline

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

◆ col()

readonly unsafe MR.Vector4f MR.Matrix4f.col ( int i)
inline

column access Generated from method MR.Matrix4f.col.

◆ data()

unsafe MR.Misc.? Ref< float > MR.Matrix4f.data ( )
inline

Generated from method MR.Matrix4f.data.

◆ data_Const()

readonly unsafe? float MR.Matrix4f.data_Const ( )
inline

Generated from method MR.Matrix4f.data.

◆ det()

readonly unsafe float MR.Matrix4f.det ( )
inline

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

◆ divAssign()

unsafe ref MR.Matrix4f MR.Matrix4f.divAssign ( float b)
inline

Generated from function MR.operator/=.

◆ Equals() [1/2]

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

◆ Equals() [2/2]

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

◆ getRotation()

readonly unsafe MR.Matrix3f MR.Matrix4f.getRotation ( )
inline

Generated from method MR.Matrix4f.getRotation.

◆ getTranslation()

readonly unsafe MR.Vector3f MR.Matrix4f.getTranslation ( )
inline

Generated from method MR.Matrix4f.getTranslation.

◆ identity()

static MR.Matrix4f MR.Matrix4f.identity ( )
inlinestatic

Generated from method MR.Matrix4f.identity.

◆ index()

unsafe ref MR.Vector4f MR.Matrix4f.index ( int row)
inline

Generated from method MR.Matrix4f.operator[].

◆ inverse()

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

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

◆ mulAssign()

unsafe ref MR.Matrix4f MR.Matrix4f.mulAssign ( float b)
inline

Generated from function MR.operator*=.

◆ norm()

readonly unsafe float MR.Matrix4f.norm ( )
inline

Generated from method MR.Matrix4f.norm.

◆ normSq()

readonly unsafe float MR.Matrix4f.normSq ( )
inline

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

◆ operator Matrix4f() [1/2]

static implicit MR.Matrix4f.operator Matrix4f ( ConstBox_Matrix4f other)
static

Copy contents from a wrapper class to this struct.

◆ operator Matrix4f() [2/2]

static unsafe implicit MR.Matrix4f.operator Matrix4f ( in MR.AffineXf3f xf)
inlinestatic

Generated from constructor MR.Matrix4f.Matrix4f.

◆ operator MR.AffineXf3f()

static unsafe implicit MR.Matrix4f.operator MR.AffineXf3f ( MR.Matrix4f _this)
inlinestatic

Generated from conversion operator MR.Matrix4f.operator MR.AffineXf3f.

◆ operator!=()

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

◆ operator*() [1/4]

static unsafe MR.Matrix4f MR.Matrix4f.operator* ( float a,
MR.Matrix4f b )
inlinestatic

Generated from function MR.operator*.

◆ operator*() [2/4]

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

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

◆ operator*() [3/4]

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

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

◆ operator*() [4/4]

static unsafe MR.Matrix4f MR.Matrix4f.operator* ( MR.Matrix4f b,
float a )
inlinestatic

Generated from function MR.operator*.

◆ operator+()

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

Generated from function MR.operator+.

◆ operator-()

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

Generated from function MR.operator-.

◆ operator/()

static MR.Matrix4f MR.Matrix4f.operator/ ( MR.Matrix4f b,
float a )
inlinestatic

Generated from function MR.operator/.

◆ operator==()

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

Generated from function MR.operator==.

◆ scale()

static MR.Matrix4f MR.Matrix4f.scale ( float s)
inlinestatic

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

◆ setRotation()

unsafe void MR.Matrix4f.setRotation ( in MR.Matrix3f rot)
inline

Generated from method MR.Matrix4f.setRotation.

◆ setTranslation()

unsafe void MR.Matrix4f.setTranslation ( in MR.Vector3f t)
inline

Generated from method MR.Matrix4f.setTranslation.

◆ subAssign()

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

Generated from function MR.operator-=.

◆ submatrix3()

readonly unsafe MR.Matrix3f MR.Matrix4f.submatrix3 ( int i,
int j )
inline

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

◆ trace()

readonly unsafe float MR.Matrix4f.trace ( )
inline

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

◆ transposed()

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

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

◆ zero()

static MR.Matrix4f MR.Matrix4f.zero ( )
inlinestatic

Generated from method MR.Matrix4f.zero.

Member Data Documentation

◆ w

MR.Vector4f MR.Matrix4f.w

◆ x

MR.Vector4f MR.Matrix4f.x

rows, identity matrix by default

◆ y

MR.Vector4f MR.Matrix4f.y

◆ z

MR.Vector4f MR.Matrix4f.z

Property Documentation

◆ this[int row]

readonly unsafe ref readonly MR.Vector4f MR.Matrix4f.this[int row]
get

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


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