How to calculate angles

BlitzMax Forums/BlitzMax Programming/How to calculate angles

Sensenwerk(Posted 2005) [#1]
It's more a math problem than a BlitzMax problem, but I need these angles (alpha, beta) to calculate the coordinates at the end of the two yellow lines (light radius) to be able to draw a simple shadow.

The image:

Thanks


ashmantle(Posted 2005) [#2]
tan is your friend here!

http://www.math.com/tables/algebra/functions/trig/overview.htm


Sensenwerk(Posted 2005) [#3]
Ooh.... I'm stupid. This is so easy, dunno why I didn't realise that.
Thanks anyway!