A = (-1.32, 2.38)
B = (1.44, 3.92)
C = (1.04, 1.32)
u = Vector(A, B)
a(x, y) = (y(u) * (x - x(A))) - (x(u) * (y - y(A))) ≥ 0
c(x, y) = (y(u) * (x - x(A))) - (x(u) * (y - y(A))) ≤ 0
b: a(C)
d = If(b, a, c)