Sprotty
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Point. Function.equals

sprotty-protocol / Point / equals

Function: equals()

equals(point1, point2): boolean

Defined in: utils/geometry.ts:68

Specifies whether a point has exactly the same coordinates as another point.

Parameters

point1

Point

a point

point2

Point

another point

Returns

boolean

true if point1 has exactly the same x and y values as point2, false otherwise.