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

arbitrary 2x2 matrix Generated from class MR.Matrix2f. This is the by-value version of the struct. More...

+ Inheritance diagram for MR.Matrix2f:

Public Member Functions

 Matrix2f (Matrix2f _other)
 Generated copy constructor.
 
unsafe Matrix2f ()
 Constructs an empty (default-constructed) instance.
 
unsafe Matrix2f (in MR.Vector2f x, in MR.Vector2f y)
 initializes matrix from its 2 rows Generated from constructor MR.Matrix2f.Matrix2f.
 
unsafe ref MR.Vector2f index (int row)
 Generated from method MR.Matrix2f.operator[].
 
readonly unsafe MR.Vector2f col (int i)
 column access Generated from method MR.Matrix2f.col.
 
readonly unsafe float trace ()
 computes trace of the matrix Generated from method MR.Matrix2f.trace.
 
readonly unsafe float normSq ()
 compute sum of squared matrix elements Generated from method MR.Matrix2f.normSq.
 
readonly unsafe float norm ()
 Generated from method MR.Matrix2f.norm.
 
readonly unsafe float det ()
 computes determinant of the matrix Generated from method MR.Matrix2f.det.
 
readonly unsafe MR.Matrix2f inverse ()
 computes inverse matrix Generated from method MR.Matrix2f.inverse.
 
readonly unsafe MR.Matrix2f transposed ()
 computes transposed matrix Generated from method MR.Matrix2f.transposed.
 
unsafe ref MR.Matrix2f addAssign (in MR.Matrix2f b)
 Generated from function MR.operator+=.
 
unsafe ref MR.Matrix2f subAssign (in MR.Matrix2f b)
 Generated from function MR.operator-=.
 
unsafe ref MR.Matrix2f mulAssign (float b)
 Generated from function MR.operator*=.
 
unsafe ref MR.Matrix2f divAssign (float b)
 Generated from function MR.operator/=.
 
bool Equals (MR.Matrix2f b)
 
override bool Equals (object? other)
 

Static Public Member Functions

static implicit operator Matrix2f (ConstBox_Matrix2f other)
 Copy contents from a wrapper class to this struct.
 
static MR.Matrix2f zero ()
 Generated from method MR.Matrix2f.zero.
 
static MR.Matrix2f identity ()
 Generated from method MR.Matrix2f.identity.
 
static MR.Matrix2f scale (float s)
 returns a matrix that scales uniformly Generated from method MR.Matrix2f.scale.
 
static MR.Matrix2f scale (float sx, float sy)
 returns a matrix that has its own scale along each axis Generated from method MR.Matrix2f.scale.
 
static unsafe MR.Matrix2f scale (in MR.Vector2f s)
 Generated from method MR.Matrix2f.scale.
 
static MR.Matrix2f rotation (float angle)
 creates matrix representing rotation around origin on given angle Generated from method MR.Matrix2f.rotation.
 
static unsafe MR.Matrix2f rotation (in MR.Vector2f from, in MR.Vector2f to)
 creates matrix representing rotation that after application to (from) makes (to) vector Generated from method MR.Matrix2f.rotation.
 
static unsafe MR.Matrix2f fromRows (in MR.Vector2f x, in MR.Vector2f y)
 constructs a matrix from its 2 rows Generated from method MR.Matrix2f.fromRows.
 
static unsafe MR.Matrix2f fromColumns (in MR.Vector2f x, in MR.Vector2f y)
 constructs a matrix from its 2 columns; use this method to get the matrix that transforms basis vectors ( plusX, plusY ) into vectors ( x, y ) respectively Generated from method MR.Matrix2f.fromColumns.
 
static unsafe bool operator== (MR.Matrix2f a, MR.Matrix2f b)
 Generated from function MR.operator==.
 
static unsafe bool operator!= (MR.Matrix2f a, MR.Matrix2f b)
 
static unsafe MR.Matrix2f operator+ (MR.Matrix2f a, in MR.Matrix2f b)
 Generated from function MR.operator+.
 
static unsafe MR.Matrix2f operator- (MR.Matrix2f a, in MR.Matrix2f b)
 Generated from function MR.operator-.
 
static unsafe MR.Matrix2f operator* (float a, MR.Matrix2f b)
 Generated from function MR.operator*.
 
static unsafe MR.Matrix2f operator* (MR.Matrix2f b, float a)
 Generated from function MR.operator*.
 
static MR.Matrix2f operator/ (MR.Matrix2f b, float a)
 Generated from function MR.operator/.
 
static unsafe MR.Vector2f operator* (MR.Matrix2f a, in MR.Vector2f b)
 x = a * b Generated from function MR.operator*.
 
static unsafe MR.Matrix2f operator* (MR.Matrix2f a, in MR.Matrix2f b)
 product of two matrices Generated from function MR.operator*.
 

Public Attributes

MR.Vector2f x
 rows, identity matrix by default
 
MR.Vector2f y
 

Properties

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

Detailed Description

arbitrary 2x2 matrix Generated from class MR.Matrix2f. This is the by-value version of the struct.

Constructor & Destructor Documentation

◆ Matrix2f() [1/3]

MR.Matrix2f.Matrix2f ( Matrix2f _other)
inline

Generated copy constructor.

◆ Matrix2f() [2/3]

unsafe MR.Matrix2f.Matrix2f ( )
inline

Constructs an empty (default-constructed) instance.

◆ Matrix2f() [3/3]

unsafe MR.Matrix2f.Matrix2f ( in MR.Vector2f x,
in MR.Vector2f y )
inline

initializes matrix from its 2 rows Generated from constructor MR.Matrix2f.Matrix2f.

Member Function Documentation

◆ addAssign()

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

Generated from function MR.operator+=.

◆ col()

readonly unsafe MR.Vector2f MR.Matrix2f.col ( int i)
inline

column access Generated from method MR.Matrix2f.col.

◆ det()

readonly unsafe float MR.Matrix2f.det ( )
inline

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

◆ divAssign()

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

Generated from function MR.operator/=.

◆ Equals() [1/2]

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

◆ Equals() [2/2]

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

◆ fromColumns()

static unsafe MR.Matrix2f MR.Matrix2f.fromColumns ( in MR.Vector2f x,
in MR.Vector2f y )
inlinestatic

constructs a matrix from its 2 columns; use this method to get the matrix that transforms basis vectors ( plusX, plusY ) into vectors ( x, y ) respectively Generated from method MR.Matrix2f.fromColumns.

◆ fromRows()

static unsafe MR.Matrix2f MR.Matrix2f.fromRows ( in MR.Vector2f x,
in MR.Vector2f y )
inlinestatic

constructs a matrix from its 2 rows Generated from method MR.Matrix2f.fromRows.

◆ identity()

static MR.Matrix2f MR.Matrix2f.identity ( )
inlinestatic

Generated from method MR.Matrix2f.identity.

◆ index()

unsafe ref MR.Vector2f MR.Matrix2f.index ( int row)
inline

Generated from method MR.Matrix2f.operator[].

◆ inverse()

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

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

◆ mulAssign()

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

Generated from function MR.operator*=.

◆ norm()

readonly unsafe float MR.Matrix2f.norm ( )
inline

Generated from method MR.Matrix2f.norm.

◆ normSq()

readonly unsafe float MR.Matrix2f.normSq ( )
inline

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

◆ operator Matrix2f()

static implicit MR.Matrix2f.operator Matrix2f ( ConstBox_Matrix2f other)
static

Copy contents from a wrapper class to this struct.

◆ operator!=()

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

◆ operator*() [1/4]

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

Generated from function MR.operator*.

◆ operator*() [2/4]

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

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

◆ operator*() [3/4]

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

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

◆ operator*() [4/4]

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

Generated from function MR.operator*.

◆ operator+()

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

Generated from function MR.operator+.

◆ operator-()

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

Generated from function MR.operator-.

◆ operator/()

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

Generated from function MR.operator/.

◆ operator==()

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

Generated from function MR.operator==.

◆ rotation() [1/2]

static MR.Matrix2f MR.Matrix2f.rotation ( float angle)
inlinestatic

creates matrix representing rotation around origin on given angle Generated from method MR.Matrix2f.rotation.

◆ rotation() [2/2]

static unsafe MR.Matrix2f MR.Matrix2f.rotation ( in MR.Vector2f from,
in MR.Vector2f to )
inlinestatic

creates matrix representing rotation that after application to (from) makes (to) vector Generated from method MR.Matrix2f.rotation.

◆ scale() [1/3]

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

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

◆ scale() [2/3]

static MR.Matrix2f MR.Matrix2f.scale ( float sx,
float sy )
inlinestatic

returns a matrix that has its own scale along each axis Generated from method MR.Matrix2f.scale.

◆ scale() [3/3]

static unsafe MR.Matrix2f MR.Matrix2f.scale ( in MR.Vector2f s)
inlinestatic

Generated from method MR.Matrix2f.scale.

◆ subAssign()

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

Generated from function MR.operator-=.

◆ trace()

readonly unsafe float MR.Matrix2f.trace ( )
inline

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

◆ transposed()

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

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

◆ zero()

static MR.Matrix2f MR.Matrix2f.zero ( )
inlinestatic

Generated from method MR.Matrix2f.zero.

Member Data Documentation

◆ x

MR.Vector2f MR.Matrix2f.x

rows, identity matrix by default

◆ y

MR.Vector2f MR.Matrix2f.y

Property Documentation

◆ this[int row]

readonly unsafe ref readonly MR.Vector2f MR.Matrix2f.this[int row]
get

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


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