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

Function.Check Which Segment Has Right Endpoint First

sprotty / checkWhichSegmentHasRightEndpointFirst

Function: checkWhichSegmentHasRightEndpointFirst()

checkWhichSegmentHasRightEndpointFirst(seg1, seg2): -1 | 1

Defined in: packages/sprotty/src/features/edge-intersection/sweepline.ts:159

Specifies which of the two specified segments has a right endpoint first. Used as a comparator to sort the event queue.

Parameters

seg1

Segment

seg2

Segment

Returns

-1 | 1