Rectangle.sameDimensions()

<static> sameDimensions(a, b) → {boolean}

Determines if the two objects (either Rectangles or Rectangle-like) have the same width and height values under strict equality.

Parameters
Name Type Description
a Rectangle-like

The first Rectangle object.

b Rectangle-like

The second Rectangle object.

Returns
boolean -

True if the object have equivalent values for the width and height properties.

Source code: geom/Rectangle.js (Line 920)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.