MCPcopy
hub / github.com/mrdoob/three.js / max

Method max

src/math/Vector3.js:593–601  ·  view source on GitHub ↗

* If this vector's x, y or z value is less than the given vector's x, y or z * value, replace that value with the corresponding max value. * * @param {Vector3} v - The vector. * @return {Vector3} A reference to this vector.

( v )

Source from the content-addressed store, hash-verified

591 * @return {Vector3} A reference to this vector.
592 */
593 max( v ) {
594
595 this.x = Math.max( this.x, v.x );
596 this.y = Math.max( this.y, v.y );
597 this.z = Math.max( this.z, v.z );
598
599 return this;
600
601 }
602
603 /**
604 * If this vector's x, y or z value is greater than the max vector's x, y or z

Callers 15

computeBoundsFunction · 0.95
caseFoldCharsetFunction · 0.45
numberLinesFunction · 0.45
minMaxFunction · 0.45
drawFunction · 0.45
integrateBRDFFunction · 0.45
writeBundleFunction · 0.45
Vector2.tests.jsFile · 0.45
Vector3.tests.jsFile · 0.45
isNormalFunction · 0.45
Vector4.tests.jsFile · 0.45
scaleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected