Skip to main content

blockly > utils > Rect > equals

utils.Rect.equals() method

Compares bounding rectangles for equality.

Signature:

static equals(a?: Rect | null, b?: Rect | null): boolean;

Parameters

Parameter

Type

Description

a

Rect | null

(Optional) A Rect.

b

Rect | null

(Optional) A Rect.

Returns:

boolean

True iff the bounding rectangles are equal, or if both are null.