MCPcopy Create free account
hub / github.com/DeepNotesApp/DeepNotes / abs

Method abs

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

Source from the content-addressed store, hash-verified

106 return new Vec2(Math.sign(this.x), Math.sign(this.y));
107 }
108 abs(): Vec2 {
109 return new Vec2(Math.abs(this.x), Math.abs(this.y));
110 }
111
112 grow(amount: Vec2): Vec2 {
113 return this.add(this.sign().mul(amount));

Callers 4

keyring.spec.tsFile · 0.80
relativeTimeStrFunction · 0.80
quasar.config.jsFile · 0.80
NoteDraggingClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected