compare MethodStatic

Performs ordered comparison of two contours.

compare(lhs: Contour, rhs: Contour): number

@returns 0 if lhs is equivalent to rhs, a negative number if lhs compares less than rhs, or a positive number if lhs compares greater than rhs.

Parameter Type Description
lhs Contour First contour to compare
rhs Contour Second contour to compare

Returns - number

0 if lhs is equivalent to rhs, a negative number if lhs compares less than rhs, or a positive number if lhs compares greater than rhs.

Defined in

Last Updated: 21 November, 2024