Which side of the directed line from -> to a point falls on: 1 left,
-1 right, 0 on the line.
The sign is the 2D cross product (to - from) x (point - from) with x right
and y up. It counts as zero when its magnitude is at most PLANAR_EPSILON
(1e-12) times the larger of 1 and the Manhattan lengths of to - from and
point - from, so the tolerance grows with the size of the figure and never
falls below the absolute floor. A degenerate line, from equal to to,
puts every point on it.
Which side of the directed line
from -> toa point falls on:1left,-1right,0on the line.The sign is the 2D cross product
(to - from) x (point - from)with x right and y up. It counts as zero when its magnitude is at mostPLANAR_EPSILON(1e-12) times the larger of 1 and the Manhattan lengths ofto - fromandpoint - from, so the tolerance grows with the size of the figure and never falls below the absolute floor. A degenerate line,fromequal toto, puts every point on it.