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

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

+ Inheritance diagram for MR.Matrix2b:

Public Member Functions

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

Static Public Member Functions

static implicit operator Matrix2b (ConstBox_Matrix2b other)
 Copy contents from a wrapper class to this struct.
 
static MR.Matrix2b zero ()
 Generated from method MR.Matrix2b.zero.
 
static MR.Matrix2b identity ()
 Generated from method MR.Matrix2b.identity.
 
static MR.Matrix2b scale (bool s)
 returns a matrix that scales uniformly Generated from method MR.Matrix2b.scale.
 
static MR.Matrix2b scale (bool sx, bool sy)
 returns a matrix that has its own scale along each axis Generated from method MR.Matrix2b.scale.
 
static unsafe MR.Matrix2b scale (in MR.Vector2b s)
 Generated from method MR.Matrix2b.scale.
 
static unsafe MR.Matrix2b fromRows (in MR.Vector2b x, in MR.Vector2b y)
 constructs a matrix from its 2 rows Generated from method MR.Matrix2b.fromRows.
 
static unsafe MR.Matrix2b fromColumns (in MR.Vector2b x, in MR.Vector2b 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.Matrix2b.fromColumns.
 
static unsafe bool operator== (MR.Matrix2b a, MR.Matrix2b b)
 Generated from function MR.operator==.
 
static unsafe bool operator!= (MR.Matrix2b a, MR.Matrix2b b)
 
static unsafe MR.Matrix2i operator+ (MR.Matrix2b a, in MR.Matrix2b b)
 Generated from function MR.operator+.
 
static unsafe MR.Matrix2i operator- (MR.Matrix2b a, in MR.Matrix2b b)
 Generated from function MR.operator-.
 
static unsafe MR.Matrix2i operator* (bool a, MR.Matrix2b b)
 Generated from function MR.operator*.
 
static unsafe MR.Matrix2i operator* (MR.Matrix2b b, bool a)
 Generated from function MR.operator*.
 
static MR.Matrix2i operator/ (MR.Matrix2b b, bool a)
 Generated from function MR.operator/.
 
static unsafe MR.Vector2i operator* (MR.Matrix2b a, in MR.Vector2b b)
 x = a * b Generated from function MR.operator*.
 
static unsafe MR.Matrix2i operator* (MR.Matrix2b a, in MR.Matrix2b b)
 product of two matrices Generated from function MR.operator*.
 

Public Attributes

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

Properties

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

Detailed Description

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

Constructor & Destructor Documentation

◆ Matrix2b() [1/3]

MR.Matrix2b.Matrix2b ( Matrix2b _other)
inline

Generated copy constructor.

◆ Matrix2b() [2/3]

unsafe MR.Matrix2b.Matrix2b ( )
inline

Constructs an empty (default-constructed) instance.

◆ Matrix2b() [3/3]

unsafe MR.Matrix2b.Matrix2b ( in MR.Vector2b x,
in MR.Vector2b y )
inline

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

Member Function Documentation

◆ addAssign()

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

Generated from function MR.operator+=.

◆ col()

readonly unsafe MR.Vector2b MR.Matrix2b.col ( int i)
inline

column access Generated from method MR.Matrix2b.col.

◆ det()

readonly unsafe bool MR.Matrix2b.det ( )
inline

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

◆ divAssign()

unsafe ref MR.Matrix2b MR.Matrix2b.divAssign ( bool b)
inline

Generated from function MR.operator/=.

◆ Equals() [1/2]

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

◆ Equals() [2/2]

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

◆ fromColumns()

static unsafe MR.Matrix2b MR.Matrix2b.fromColumns ( in MR.Vector2b x,
in MR.Vector2b 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.Matrix2b.fromColumns.

◆ fromRows()

static unsafe MR.Matrix2b MR.Matrix2b.fromRows ( in MR.Vector2b x,
in MR.Vector2b y )
inlinestatic

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

◆ identity()

static MR.Matrix2b MR.Matrix2b.identity ( )
inlinestatic

Generated from method MR.Matrix2b.identity.

◆ index()

unsafe ref MR.Vector2b MR.Matrix2b.index ( int row)
inline

Generated from method MR.Matrix2b.operator[].

◆ mulAssign()

unsafe ref MR.Matrix2b MR.Matrix2b.mulAssign ( bool b)
inline

Generated from function MR.operator*=.

◆ norm()

readonly unsafe double MR.Matrix2b.norm ( )
inline

Generated from method MR.Matrix2b.norm.

◆ normSq()

readonly unsafe bool MR.Matrix2b.normSq ( )
inline

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

◆ operator Matrix2b()

static implicit MR.Matrix2b.operator Matrix2b ( ConstBox_Matrix2b other)
static

Copy contents from a wrapper class to this struct.

◆ operator!=()

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

◆ operator*() [1/4]

static unsafe MR.Matrix2i MR.Matrix2b.operator* ( bool a,
MR.Matrix2b b )
inlinestatic

Generated from function MR.operator*.

◆ operator*() [2/4]

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

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

◆ operator*() [3/4]

static unsafe MR.Vector2i MR.Matrix2b.operator* ( MR.Matrix2b a,
in MR.Vector2b b )
inlinestatic

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

◆ operator*() [4/4]

static unsafe MR.Matrix2i MR.Matrix2b.operator* ( MR.Matrix2b b,
bool a )
inlinestatic

Generated from function MR.operator*.

◆ operator+()

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

Generated from function MR.operator+.

◆ operator-()

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

Generated from function MR.operator-.

◆ operator/()

static MR.Matrix2i MR.Matrix2b.operator/ ( MR.Matrix2b b,
bool a )
inlinestatic

Generated from function MR.operator/.

◆ operator==()

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

Generated from function MR.operator==.

◆ scale() [1/3]

static MR.Matrix2b MR.Matrix2b.scale ( bool s)
inlinestatic

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

◆ scale() [2/3]

static MR.Matrix2b MR.Matrix2b.scale ( bool sx,
bool sy )
inlinestatic

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

◆ scale() [3/3]

static unsafe MR.Matrix2b MR.Matrix2b.scale ( in MR.Vector2b s)
inlinestatic

Generated from method MR.Matrix2b.scale.

◆ subAssign()

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

Generated from function MR.operator-=.

◆ trace()

readonly unsafe bool MR.Matrix2b.trace ( )
inline

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

◆ transposed()

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

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

◆ zero()

static MR.Matrix2b MR.Matrix2b.zero ( )
inlinestatic

Generated from method MR.Matrix2b.zero.

Member Data Documentation

◆ x

MR.Vector2b MR.Matrix2b.x

rows, identity matrix by default

◆ y

MR.Vector2b MR.Matrix2b.y

Property Documentation

◆ this[int row]

readonly unsafe ref readonly MR.Vector2b MR.Matrix2b.this[int row]
get

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


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