MeshLib
 
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
 

Typedef Documentation

◆ MRMatrix3f

typedef MR_EXTERN_C_BEGIN struct MRMatrix3f MRMatrix3f

arbitrary row-major 3x3 matrix

Function Documentation

◆ mrMatrix3fIdentity()

MRMESHC_API MRMatrix3f mrMatrix3fIdentity ( void )

initializes an identity matrix

◆ mrMatrix3fMul()

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

multiplies two matrices

◆ 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