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

Method length

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

Source from the content-addressed store, hash-verified

56 }
57
58 length(): number {
59 return Math.sqrt(this.dot(this));
60 }
61 normal(): Vec2 {
62 return this.divScalar(this.length());
63 }

Callers 3

normalMethod · 0.95
cosineToMethod · 0.95
_getCenterAndDistanceMethod · 0.80

Calls 2

dotMethod · 0.95
sqrtMethod · 0.80

Tested by

no test coverage detected