MCPcopy Create free account
hub / github.com/brenocq/implot3d / Normalize

Method Normalize

implot3d.cpp:3490–3495  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3488double ImPlot3DPoint::LengthSquared() const { return x * x + y * y + z * z; }
3489
3490void ImPlot3DPoint::Normalize() {
3491 double l = Length();
3492 x /= l;
3493 y /= l;
3494 z /= l;
3495}
3496
3497ImPlot3DPoint ImPlot3DPoint::Normalized() const {
3498 double l = Length();

Callers 3

RenderTickMarksFunction · 0.80
HandleInputFunction · 0.80
FromTwoVectorsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected