Math Help?

BlitzMax Forums/BlitzMax Programming/Math Help?

kochOn(Posted 2007) [#1]
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...




Floyd(Posted 2007) [#2]
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 )


kochOn(Posted 2007) [#3]
Thanks, I am going to try this!


kochOn(Posted 2007) [#4]
Great man, it works perfectly! :)