MCPcopy Create free account
hub / github.com/melonjs/melonJS / length

Method length

packages/melonjs/src/math/vector3d.ts:374–376  ·  view source on GitHub ↗

* return the length (magnitude) of this vector * @returns the length of this vector

()

Source from the content-addressed store, hash-verified

372 * @returns the length of this vector
373 */
374 length() {
375 return Math.sqrt(this.length2());
376 }
377
378 /**
379 * Linearly interpolate between this vector and the given one.

Callers 10

normalizeMethod · 0.95
angleMethod · 0.95
testPolygonEllipseFunction · 0.45
_projectVerticesWorldMethod · 0.45
sprite3d.spec.jsFile · 0.45
vector2d.spec.tsFile · 0.45
lighting3d.spec.jsFile · 0.45
vector3d.spec.tsFile · 0.45

Calls 1

length2Method · 0.95

Tested by

no test coverage detected