MeshLib Documentation
Loading...
Searching...
No Matches
MRMatrix3.h File Reference
#include "MRMeshFwd.h"
#include "MRVector3.h"

Go to the source code of this file.

Classes

struct  MRMatrix3f
 arbitrary row-major 3x3 matrix More...
 

Typedefs

typedef MR_EXTERN_C_BEGIN struct MRMatrix3f MRMatrix3f
 arbitrary row-major 3x3 matrix
 

Functions

MRMESHC_API MRMatrix3f mrMatrix3fIdentity (void)
 initializes an identity matrix
 
MRMESHC_API MRMatrix3f mrMatrix3fRotationScalar (const MRVector3f *axis, float angle)
 creates a matrix representing rotation around given axis on given angle
 
MRMESHC_API MRMatrix3f mrMatrix3fRotationVector (const MRVector3f *from, const MRVector3f *to)
 creates a matrix representing rotation that after application to (from) makes (to) vector
 
MRMESHC_API MRMatrix3f mrMatrix3fMul (const MRMatrix3f *a, const MRMatrix3f *b)
 multiplies two matrices
 
MRMESHC_API MRMatrix3f mrMatrix3fAdd (const MRMatrix3f *a, const MRMatrix3f *b)
 
MRMESHC_API MRMatrix3f mrMatrix3fSub (const MRMatrix3f *a, const MRMatrix3f *b)
 
MRMESHC_API MRVector3f mrMatrix3fMulVector (const MRMatrix3f *a, const MRVector3f *b)
 
MRMESHC_API bool mrMatrix3fEqual (const MRMatrix3f *a, const MRMatrix3f *b)
 

Typedef Documentation

◆ MRMatrix3f

typedef MR_EXTERN_C_BEGIN struct MRMatrix3f MRMatrix3f

arbitrary row-major 3x3 matrix

Function Documentation

◆ mrMatrix3fAdd()

MRMESHC_API MRMatrix3f mrMatrix3fAdd ( const MRMatrix3f * a,
const MRMatrix3f * b )

◆ mrMatrix3fEqual()

MRMESHC_API bool mrMatrix3fEqual ( const MRMatrix3f * a,
const MRMatrix3f * b )

◆ mrMatrix3fIdentity()

MRMESHC_API MRMatrix3f mrMatrix3fIdentity ( void )

initializes an identity matrix

◆ mrMatrix3fMul()

MRMESHC_API MRMatrix3f mrMatrix3fMul ( const MRMatrix3f * a,
const MRMatrix3f * b )

multiplies two matrices

◆ mrMatrix3fMulVector()

MRMESHC_API MRVector3f mrMatrix3fMulVector ( const MRMatrix3f * a,
const MRVector3f * b )

◆ mrMatrix3fRotationScalar()

MRMESHC_API MRMatrix3f mrMatrix3fRotationScalar ( const MRVector3f * axis,
float angle )

creates a matrix representing rotation around given axis on given angle

◆ mrMatrix3fRotationVector()

MRMESHC_API MRMatrix3f mrMatrix3fRotationVector ( const MRVector3f * from,
const MRVector3f * to )

creates a matrix representing rotation that after application to (from) makes (to) vector

◆ mrMatrix3fSub()

MRMESHC_API MRMatrix3f mrMatrix3fSub ( const MRMatrix3f * a,
const MRMatrix3f * b )