MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / length_squared

Function length_squared

Source/Graphics/csg.cpp:274–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274double length_squared(const vec3d &vec) {
275 return vec[0] * vec[0] + vec[1] * vec[1] + vec[2] * vec[2];
276}
277
278vec3d normalize(const vec3d &vec) {
279 double length_squared_val = length_squared(vec);

Callers 4

UpdateMethod · 0.70
normalizeFunction · 0.70
distance_squaredFunction · 0.70
DebugDrawLineMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected