MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / normalize

Method normalize

Marlin/src/libs/vector_3.cpp:68–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66float vector_3::magnitude() const { return SQRT(sq(x) + sq(y) + sq(z)); }
67
68void vector_3::normalize() { *this *= RSQRT(sq(x) + sq(y) + sq(z)); }
69
70// Apply a rotation to the matrix
71void vector_3::apply_rotation(const matrix_3x3 &matrix) {

Callers 7

M600Method · 0.45
M701Method · 0.45
M702Method · 0.45
M164Method · 0.45
M165Method · 0.45
_lcd_mixer_commit_vtoolFunction · 0.45
get_normalMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected