geos.GEOSOrientationIndex ⇒ number
⏏
For the points formed by the six input ordinates, walking from A to B and then to P.
Kind: global property of geos
Returns: number
- -1 if reaching P takes a counter-clockwise (left) turn, 1 if reaching P takes a clockwise (right) turn, 0 if P is collinear with A-B
Param | Type | Description |
---|---|---|
Ax | number | X coordinate of A |
Ay | number | Y coordinate of A |
Bx | number | X coordinate of B |
By | number | Y coordinate of B |
Px | number | X coordinate of P |
Py | number | Y coordinate of P |
geos.GEOSOrientationIndex_r ⇒ number
⏏
For the points formed by the six input ordinates, walking from A to B and then to P.
Kind: global property of geos
Returns: number
- -1 if reaching P takes a counter-clockwise (left) turn, 1 if reaching P takes a clockwise (right) turn, 0 if P is collinear with A-B
Param | Type | Description |
---|---|---|
handle | GEOSContextHandle_t | - |
Ax | number | X coordinate of A |
Ay | number | Y coordinate of A |
Bx | number | X coordinate of B |
By | number | Y coordinate of B |
Px | number | X coordinate of P |
Py | number | Y coordinate of P |