geos_segment_intersection() returns a list(x, y);
geos_orientation_index() returns -1, 0 or 1, depending if
the point lies to the right of (-1), is colinear with (0) or
lies to the left of (1) the segment (as judged from the start
of the segment looking towards the end).
Arguments
a, b
A list() representing segments in the form
list(x0, y0, x1, y1). List items with length 1 will be
recycled to the length of the longest item.
point
A list() representing points in the form list(x, y).