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

Method mulScalar

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

Source from the content-addressed store, hash-verified

42 return new Vec2(this.x - scalar, this.y - scalar);
43 }
44 mulScalar(scalar: number): Vec2 {
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 }

Callers 3

lerpMethod · 0.80
halfSizeMethod · 0.80
animateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected