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

Go to the source code of this file.

Classes

struct  MRVector3f
 three-dimensional vector More...
 

Typedefs

typedef MR_EXTERN_C_BEGIN struct MRVector3f MRVector3f
 three-dimensional vector
 
typedef MRVector3f MRTriangle3f[3]
 a set of 3 vectors; useful for representing a face via its vertex coordinates
 

Functions

MRMESHC_API MRVector3f mrVector3fDiagonal (float a)
 (a, a, a)
 
MRMESHC_API MRVector3f mrVector3fPlusX (void)
 (1, 0, 0)
 
MRMESHC_API MRVector3f mrVector3fPlusY (void)
 (0, 1, 0)
 
MRMESHC_API MRVector3f mrVector3fPlusZ (void)
 (0, 0, 1)
 
MRMESHC_API MRVector3f mrVector3fAdd (const MRVector3f *a, const MRVector3f *b)
 adds two vectors
 
MRMESHC_API MRVector3f mrVector3fSub (const MRVector3f *a, const MRVector3f *b)
 
MRMESHC_API MRVector3f mrVector3fMulScalar (const MRVector3f *a, float b)
 multiplies a vector by a scalar value
 
MRMESHC_API float mrVector3fLengthSq (const MRVector3f *v)
 squared length of the vector
 
MRMESHC_API float mrVector3fLength (const MRVector3f *v)
 length of the vector
 

Typedef Documentation

◆ MRTriangle3f

typedef MRVector3f MRTriangle3f[3]

a set of 3 vectors; useful for representing a face via its vertex coordinates

◆ MRVector3f

typedef MR_EXTERN_C_BEGIN struct MRVector3f MRVector3f

three-dimensional vector

Function Documentation

◆ mrVector3fAdd()

MRMESHC_API MRVector3f mrVector3fAdd ( const MRVector3f * a,
const MRVector3f * b )

adds two vectors

◆ mrVector3fDiagonal()

MRMESHC_API MRVector3f mrVector3fDiagonal ( float a)

(a, a, a)

◆ mrVector3fLength()

MRMESHC_API float mrVector3fLength ( const MRVector3f * v)

length of the vector

◆ mrVector3fLengthSq()

MRMESHC_API float mrVector3fLengthSq ( const MRVector3f * v)

squared length of the vector

◆ mrVector3fMulScalar()

MRMESHC_API MRVector3f mrVector3fMulScalar ( const MRVector3f * a,
float b )

multiplies a vector by a scalar value

◆ mrVector3fPlusX()

MRMESHC_API MRVector3f mrVector3fPlusX ( void )

(1, 0, 0)

◆ mrVector3fPlusY()

MRMESHC_API MRVector3f mrVector3fPlusY ( void )

(0, 1, 0)

◆ mrVector3fPlusZ()

MRMESHC_API MRVector3f mrVector3fPlusZ ( void )

(0, 0, 1)

◆ mrVector3fSub()

MRMESHC_API MRVector3f mrVector3fSub ( const MRVector3f * a,
const MRVector3f * b )