MCPcopy Create free account
hub / github.com/DjDeveloperr/deno_desktop / clamp

Method clamp

examples/extern/gmath.bundle.js:364–366  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

362 return new Vector2(this.x, this.y);
363 }
364 clamp(length) {
365 return this.normal().mul(length);
366 }
367 dot(other) {
368 const { x , y , z } = this.mul(other);
369 return x + y + z;

Callers

nothing calls this directly

Calls 2

normalMethod · 0.95
mulMethod · 0.45

Tested by

no test coverage detected