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

Method sqrt

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

Source from the content-addressed store, hash-verified

92 return this.dot(this);
93 }
94 sqrt(): Vec2 {
95 return new Vec2(Math.sqrt(this.x), Math.sqrt(this.y));
96 }
97
98 lerp(vec: Vec2, t: number): Vec2 {
99 return this.add(vec.sub(this).mulScalar(t));

Callers 3

lengthMethod · 0.80
distMethod · 0.80
createDoubleClickCheckerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected