MeshLib
 
Loading...
Searching...
No Matches
MRDotNet/MRMatrix3.h
Go to the documentation of this file.
1#pragma once
2#include "MRMeshFwd.h"
3
5
7public ref class Matrix3f
8{
9public:
15
17 static Matrix3f^ Zero();
19 static Matrix3f^ Rotation( Vector3f^ axis, float angle );
21 static Matrix3f^ Rotation( Vector3f^ from, Vector3f^ to );
22
24 property Vector3f^ X { Vector3f^ get(); void set( Vector3f^ value ); }
26 property Vector3f^ Y { Vector3f^ get(); void set( Vector3f^ value ); }
28 property Vector3f^ Z { Vector3f^ get(); void set( Vector3f^ value ); }
29
30
33
34 static bool operator==( Matrix3f^ a, Matrix3f^ b );
35 static bool operator!=( Matrix3f^ a, Matrix3f^ b );
36
39
40internal:
42 MR::Matrix3f* mat() { return mat_; }
43
44private:
45 MR::Matrix3f* mat_;
46
47 Vector3f^ x_;
48 Vector3f^ y_;
49 Vector3f^ z_;
50};
51
#define MR_DOTNET_NAMESPACE_BEGIN
Definition MRDotNet/MRMeshFwd.h:42
#define MR_DOTNET_NAMESPACE_END
Definition MRDotNet/MRMeshFwd.h:43
angle
Definition MRObjectDimensionsEnum.h:13
arbitrary 3x3 matrix
Definition MRDotNet/MRMatrix3.h:8
static Matrix3f Rotation(Vector3f^ from, Vector3f^ to)
creates rotation matrix from one vector to another
static Vector3f operator*(Matrix3f^ a, Vector3f^ b)
static bool operator!=(Matrix3f^ a, Matrix3f^ b)
Matrix3f(Vector3f^ x, Vector3f^ y, Vector3f^ z)
creates matrix with given rows
static Matrix3f operator*(Matrix3f^ a, Matrix3f^ b)
static Matrix3f operator-(Matrix3f^ a, Matrix3f^ b)
static Matrix3f Zero()
creates zero matrix
static Matrix3f Rotation(Vector3f^ axis, float angle)
creates rotation matrix around given axis with given angle
property Vector3f Y
second row
Definition MRDotNet/MRMatrix3.h:26
property Vector3f Z
third row
Definition MRDotNet/MRMatrix3.h:28
Matrix3f()
creates the identity matrix
property Vector3f X
first row
Definition MRDotNet/MRMatrix3.h:24
void set(Vector3f^ value)
static Matrix3f operator+(Matrix3f^ a, Matrix3f^ b)
static bool operator==(Matrix3f^ a, Matrix3f^ b)
MR::Matrix3f * mat()
Definition MRDotNet/MRMatrix3.h:42
represents a 3-dimentional float-typed vector
Definition MRDotNet/MRVector3.h:8