Prusa MINI Firmware overview
vector_3.h File Reference
#include "../core/types.h"

Go to the source code of this file.

Classes

struct  vector_3
 
struct  matrix_3x3
 

Functions

void apply_rotation_xyz (const matrix_3x3 &rotationMatrix, float &x, float &y, float &z)
 
FORCE_INLINE void apply_rotation_xyz (const matrix_3x3 &rotationMatrix, xyz_pos_t &pos)
 

Function Documentation

◆ apply_rotation_xyz() [1/2]

void apply_rotation_xyz ( const matrix_3x3 matrix,
float &  _x,
float &  _y,
float &  _z 
)

matrix_3x3

88  {
89  vector_3 vec = vector_3(_x, _y, _z); vec.apply_rotation(matrix);
90  _x = vec.x; _y = vec.y; _z = vec.z;
91 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ apply_rotation_xyz() [2/2]

FORCE_INLINE void apply_rotation_xyz ( const matrix_3x3 rotationMatrix,
xyz_pos_t pos 
)
87  {
88  apply_rotation_xyz(rotationMatrix, pos.x, pos.y, pos.z);
89 }
Here is the call graph for this function:
XYZval::z
T z
Definition: types.h:286
XYZval::x
T x
Definition: types.h:286
vector_3::apply_rotation
void apply_rotation(const matrix_3x3 &matrix)
Definition: vector_3.cpp:72
XYZval::y
T y
Definition: types.h:286
apply_rotation_xyz
void apply_rotation_xyz(const matrix_3x3 &rotationMatrix, float &x, float &y, float &z)
Definition: vector_3.cpp:88
vector_3
Definition: vector_3.h:47