Take a point between A and B on the same line

Take a point on either side of A or B on the same line

A = (1.32, 0.54)
B = (5.8, 0.52)
G = (4.16, 6.16)
H = (20.84, 5.74)
f = Line(A, B)
C = Point(f)
D = Point(f)
a = false
b = false