MeshLib C# Docs
Loading...
Searching...
No Matches
MR.ConstBox_Matrix2d Class Reference

arbitrary 2x2 matrix Generated from class MR.Matrix2d. This is the const reference to the struct. More...

+ Inheritance diagram for MR.ConstBox_Matrix2d:

Classes

struct  _Underlying
 

Public Member Functions

unsafe ConstBox_Matrix2d (Matrix2d other)
 Make a copy of a struct. (Even though we initially pass is_owning: false, we then use the copy constructor to produce an owning instance.)
 
virtual void Dispose ()
 
unsafe ConstBox_Matrix2d (ConstBox_Matrix2d _other)
 Generated copy constructor.
 
unsafe ConstBox_Matrix2d ()
 Constructs an empty (default-constructed) instance.
 
unsafe ConstBox_Matrix2d (in MR.Vector2d x, in MR.Vector2d y)
 initializes matrix from its 2 rows Generated from constructor MR.Matrix2d.Matrix2d.
 
unsafe MR.Vector2d col (int i)
 column access Generated from method MR.Matrix2d.col.
 
unsafe double trace ()
 computes trace of the matrix Generated from method MR.Matrix2d.trace.
 
unsafe double normSq ()
 compute sum of squared matrix elements Generated from method MR.Matrix2d.normSq.
 
unsafe double norm ()
 Generated from method MR.Matrix2d.norm.
 
unsafe double det ()
 computes determinant of the matrix Generated from method MR.Matrix2d.det.
 
unsafe MR.Matrix2d inverse ()
 computes inverse matrix Generated from method MR.Matrix2d.inverse.
 
unsafe MR.Matrix2d transposed ()
 computes transposed matrix Generated from method MR.Matrix2d.transposed.
 
bool Equals (MR.ConstBox_Matrix2d? b)
 
override bool Equals (object? other)
 

Static Public Member Functions

static implicit operator ConstBox_Matrix2d (Matrix2d other)
 Convert from a struct by copying it. Note that only ConstBox_Matrix2d has this conversion, Box_Matrix2d intentionally doesn't.
 
static MR.Matrix2d zero ()
 Generated from method MR.Matrix2d.zero.
 
static MR.Matrix2d identity ()
 Generated from method MR.Matrix2d.identity.
 
static MR.Matrix2d scale (double s)
 returns a matrix that scales uniformly Generated from method MR.Matrix2d.scale.
 
static MR.Matrix2d scale (double sx, double sy)
 returns a matrix that has its own scale along each axis Generated from method MR.Matrix2d.scale.
 
static unsafe MR.Matrix2d scale (in MR.Vector2d s)
 Generated from method MR.Matrix2d.scale.
 
static MR.Matrix2d rotation (double angle)
 creates matrix representing rotation around origin on given angle Generated from method MR.Matrix2d.rotation.
 
static unsafe MR.Matrix2d rotation (in MR.Vector2d from, in MR.Vector2d to)
 creates matrix representing rotation that after application to (from) makes (to) vector Generated from method MR.Matrix2d.rotation.
 
static unsafe MR.Matrix2d fromRows (in MR.Vector2d x, in MR.Vector2d y)
 constructs a matrix from its 2 rows Generated from method MR.Matrix2d.fromRows.
 
static unsafe MR.Matrix2d fromColumns (in MR.Vector2d x, in MR.Vector2d 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.Matrix2d.fromColumns.
 
static unsafe bool operator== (MR.ConstBox_Matrix2d a, MR.ConstBox_Matrix2d b)
 Generated from function MR.operator==.
 
static unsafe bool operator!= (MR.ConstBox_Matrix2d a, MR.ConstBox_Matrix2d b)
 
static unsafe MR.Matrix2d operator+ (MR.ConstBox_Matrix2d a, in MR.Matrix2d b)
 Generated from function MR.operator+.
 
static unsafe MR.Matrix2d operator- (MR.ConstBox_Matrix2d a, in MR.Matrix2d b)
 Generated from function MR.operator-.
 
static unsafe MR.Matrix2d operator* (double a, MR.ConstBox_Matrix2d b)
 Generated from function MR.operator*.
 
static unsafe MR.Matrix2d operator* (MR.ConstBox_Matrix2d b, double a)
 Generated from function MR.operator*.
 
static unsafe MR.Matrix2d operator/ (ConstBox_Matrix2d b, double a)
 Generated from function MR.operator/.
 
static unsafe MR.Vector2d operator* (MR.ConstBox_Matrix2d a, in MR.Vector2d b)
 x = a * b Generated from function MR.operator*.
 
static unsafe MR.Matrix2d operator* (MR.ConstBox_Matrix2d a, in MR.Matrix2d b)
 product of two matrices Generated from function MR.operator*.
 

Protected Member Functions

virtual unsafe void Dispose (bool disposing)
 

Properties

unsafe ref readonly Matrix2d _Ref [get]
 Get the underlying struct.
 
ref readonly MR.Vector2d x [get]
 rows, identity matrix by default
 
ref readonly MR.Vector2d y [get]
 
unsafe ref readonly MR.Vector2d this[int row] [get]
 row access Generated from method MR.Matrix2d.operator[].
 
- Properties inherited from MR.Misc.Object< ConstBox_Matrix2d >
virtual bool _IsOwning [get]
 Returns true if this is an owning instance, and when disposed, will destroy the underlying C++ instance. If false, we assume that the underlying C++ instance will live long enough.
 

Additional Inherited Members

- Protected Attributes inherited from MR.Misc.Object< ConstBox_Matrix2d >
bool _IsOwningVal
 

Detailed Description

arbitrary 2x2 matrix Generated from class MR.Matrix2d. This is the const reference to the struct.


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