something like this:
def pointBetween(a,b,c)
array = [[a.x.to_f,b.x.to_f],[a.y.to_f,b.y.to_f],[a.z.to_f,b.z.to_f]]
x = c.x.to_f.between?(*array[0].sort)
y = c.y.to_f.between?(*array[1].sort)
z = c.z.to_f.between?(*array[2].sort)
return x && y && z
end
I'm not saying it will work, I'm just wondering whether it will or not.