If the number of coordinates is odd, the behaviour is not defined.
x1
, y1
,
x2
, y2
, ...,
xN
, yN
)
giving vertices of an N-sided polygonisInside(0.5,0.5, 0,0, 0,1, 1,1, 1,0) = true
isInside(0,0, array(10,20, 20,20, 20,10)) = false