Nugget
Loading...
Searching...
No Matches
Functions
math.c File Reference
#include "shell/math.h"
#include <stdint.h>
#include "shell/dcos.h"
Include dependency graph for math.c:

Functions

void generateRotationMatrix3D (struct Matrix3D *m, int t, enum Axis a)
 
void multiplyMatrix3D (const struct Matrix3D *m1, const struct Matrix3D *m2, struct Matrix3D *out)
 
void scaleMatrix3D (struct Matrix3D *m, int32_t s)
 
void matrixVertexMul3D (const struct Matrix3D *m, const struct Vertex3D *v, struct Vertex3D *out)
 
void matrixVertexMul3Dxy (const struct Matrix3D *m, const struct Vertex3D *v, struct Vertex2D *out)
 
int32_t matrixVertexMul3Dz (const struct Matrix3D *m, const struct Vertex3D *v)
 
int32_t dDiv (int32_t a, int32_t b)
 

Function Documentation

◆ dDiv()

int32_t dDiv ( int32_t  a,
int32_t  b 
)

◆ generateRotationMatrix3D()

void generateRotationMatrix3D ( struct Matrix3D m,
int  t,
enum Axis  a 
)

◆ matrixVertexMul3D()

void matrixVertexMul3D ( const struct Matrix3D m,
const struct Vertex3D v,
struct Vertex3D out 
)

◆ matrixVertexMul3Dxy()

void matrixVertexMul3Dxy ( const struct Matrix3D m,
const struct Vertex3D v,
struct Vertex2D out 
)

◆ matrixVertexMul3Dz()

int32_t matrixVertexMul3Dz ( const struct Matrix3D m,
const struct Vertex3D v 
)

◆ multiplyMatrix3D()

void multiplyMatrix3D ( const struct Matrix3D m1,
const struct Matrix3D m2,
struct Matrix3D out 
)

◆ scaleMatrix3D()

void scaleMatrix3D ( struct Matrix3D m,
int32_t  s 
)