Skip to main content

Class: Equals

Utility class for comparing equality of m2c2kit objects.

Deprecated

Use the class Equal instead.

Constructors

new Equals()

new Equals(): Equals

Returns

Equals

Methods

rgbaColor()

static rgbaColor(color1?, color2?): boolean

Compares two RgbaColor objects and returns true if they are equal.

Parameters

color1?: RgbaColor

color2?: RgbaColor

Returns

boolean

Remarks

If either of the colors is undefined, the comparison will return false. RgbaColor is an array of 4 numbers, and thus is a reference type. We need this method to compare two RgbaColor objects for value equality.

Deprecated

Use the methods in Equal instead.

Defined in

Equals.ts:24