MCPcopy
hub / github.com/KilledByAPixel/LittleJS / length

Method length

src/engineMath.js:679–679  ·  view source on GitHub ↗

Returns the length of this vector * @return {number}

()

Source from the content-addressed store, hash-verified

677 /** Returns the length of this vector
678 * @return {number} */
679 length() { return this.lengthSquared()**.5; }
680
681 /** Returns the length of this vector squared
682 * @return {number} */

Callers 15

normalizeMethod · 0.95
clampLengthMethod · 0.95
math.test.mjsFile · 0.80
debugLineFunction · 0.80
drawLineFunction · 0.80
isOnScreenFunction · 0.80
renderMethod · 0.80
updatePhysicsMethod · 0.80
getSpeedMethod · 0.80
getSpeedMethod · 0.80
collideWithObjectMethod · 0.80
getHitStrengthMethod · 0.80

Calls 1

lengthSquaredMethod · 0.95

Tested by

no test coverage detected