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...



If you know the angle between the lines meeting at B, and assuming both lines have thickness T then the little vertical segment should have length

T / Sin( angle / 2 )

Thanks, I am going to try this!

Great man, it works perfectly! :)