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

Method add

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

* Computes the componentwise sum of two Colors. * * @param {Color} left The first Color. * @param {Color} right The second Color. * @param {Color} result The object onto which to store the result. * @returns {Color} The modified result parameter.

(left, right, result)

Source from the content-addressed store, hash-verified

774 * @returns {Color} The modified result parameter.
775 */
776 static add(left, right, result) {
777 //>>includeStart('debug', pragmas.debug);
778 Check.typeOf.object("left", left);
779 Check.typeOf.object("right", right);
780 Check.typeOf.object("result", result);
781 //>>includeEnd('debug');
782
783 result.red = left.red + right.red;
784 result.green = left.green + right.green;
785 result.blue = left.blue + right.blue;
786 result.alpha = left.alpha + right.alpha;
787 return result;
788 }
789
790 /**
791 * Computes the componentwise difference of two Colors.

Callers 15

processEngineModulesFunction · 0.45
PropertyArray.jsFile · 0.45
subscribeAllFunction · 0.45
PolylineUpdaterFunction · 0.45
PathVisualizer.jsFile · 0.45
addClusterFunction · 0.45
createDeclutterCallbackFunction · 0.45
createGetEntityFunction · 0.45

Calls 1

objectMethod · 0.80

Tested by

no test coverage detected