MCPcopy Index your code
hub / github.com/DeepNotesApp/DeepNotes / normal

Method normal

packages/@stdlib/misc/src/vec2.ts:61–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 return Math.sqrt(this.dot(this));
60 }
61 normal(): Vec2 {
62 return this.divScalar(this.length());
63 }
64 distSqr(vec: Vec2): number {
65 return this.sub(vec).sqr();
66 }

Callers

nothing calls this directly

Calls 2

divScalarMethod · 0.95
lengthMethod · 0.95

Tested by

no test coverage detected