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

Method divScalar

packages/@stdlib/misc/src/vec2.ts:47–49  ·  view source on GitHub ↗
(scalar: number)

Source from the content-addressed store, hash-verified

45 return new Vec2(this.x * scalar, this.y * scalar);
46 }
47 divScalar(scalar: number): Vec2 {
48 return new Vec2(this.x / scalar, this.y / scalar);
49 }
50
51 dot(vec: Vec2): number {
52 return this.x * vec.x + this.y * vec.y;

Callers 5

normalMethod · 0.95
halfSizeMethod · 0.80
scrollIntoViewFunction · 0.80
performMethod · 0.80
PagePanningClass · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected