Skip to content

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

ParamTypeDescription
AxnumberX coordinate of A
AynumberY coordinate of A
BxnumberX coordinate of B
BynumberY coordinate of B
PxnumberX coordinate of P
PynumberY 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

ParamTypeDescription
handleGEOSContextHandle_t-
AxnumberX coordinate of A
AynumberY coordinate of A
BxnumberX coordinate of B
BynumberY coordinate of B
PxnumberX coordinate of P
PynumberY coordinate of P