MCPcopy
hub / github.com/CesiumGS/cesium / equals

Method equals

packages/engine/Source/Core/Color.js:527–537  ·  view source on GitHub ↗

* Returns true if the first Color equals the second color. * * @param {Color} [left] The first Color to compare for equality. * @param {Color} [right] The second Color to compare for equality. * @returns {boolean} true if the Colors are equal; otherwise, false .

(left, right)

Source from the content-addressed store, hash-verified

525 * @returns {boolean} <code>true</code> if the Colors are equal; otherwise, <code>false</code>.
526 */
527 static equals(left, right) {
528 return (
529 left === right || //
530 (defined(left) && //
531 defined(right) && //
532 left.red === right.red && //
533 left.green === right.green && //
534 left.blue === right.blue && //
535 left.alpha === right.alpha)
536 );
537 }
538
539 /**
540 * @private

Callers 15

checkGzipAndNextFunction · 0.45
TextureAtlas.jsFile · 0.45
UniformState.jsFile · 0.45
Context.jsFile · 0.45
setMethod · 0.45
setMethod · 0.45
setMethod · 0.45
setMethod · 0.45
setMethod · 0.45
setMethod · 0.45
updateResourcesFunction · 0.45
getBoxChunkObbFunction · 0.45

Calls 1

definedFunction · 0.70

Tested by

no test coverage detected