Math Help?

BlitzMax Forums/BlitzMax Programming/Math Help?

I am writing a DrawShape Function with variable thickness.

All seems to be good except I can't find by math the segment size between B and the Green Point.
Without that, My shapes will have different thickness according to the formed angle between AB and BC.

Hope you ll understand...