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

Method get_normal

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

Source from the content-addressed store, hash-verified

58}
59
60vector_3 vector_3::get_normal() const {
61 vector_3 normalized = *this;
62 normalized.normalize();
63 return normalized;
64}
65
66float vector_3::magnitude() const { return SQRT(sq(x) + sq(y) + sq(z)); }
67

Callers 3

G29Method · 0.80
create_look_atMethod · 0.80

Calls 1

normalizeMethod · 0.45

Tested by

no test coverage detected