Calculate the slope (or angle) from any point to (1,1) and base it on that.
Example: (0.2,0.2) ==> Slope = (1-0.2)/(1-0.2) = 1 = 45°
Example: (0.9,0.2) ==> Slope = (1-0.2)/(1-0.9) = 8 = 83°
So you could say the first point was 45°/90° = 0.5, and the second 83°/90° = 0.92
That should get you close.