Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
60
vector_3 vector_3::get_normal() const {
61
vector_3 normalized = *this;
62
normalized.normalize();
63
return normalized;
64
}
65
66
float vector_3::magnitude() const { return SQRT(sq(x) + sq(y) + sq(z)); }
67
Callers
3
G29
Method · 0.80
create_look_at
Method · 0.80
tilt_mesh_based_on_probed_grid
Method · 0.80
Calls
1
normalize
Method · 0.45
Tested by
no test coverage detected