Ok, I think I have it sorted out. I don't understand why this works exactly or even understand the formula but this is how to work out the opposite side of a right angled triangle when you know the adjacent side and angle
- [color=red]([/color][color=royalblue]setq[/color] AngInDegrees[color=seagreen] 25[/color][color=red])[/color][color=gray]; In this example, I set the angle to 25 degrees (not radians)[/color][color=red]([/color][color=royalblue]setq[/color] SIDE [color=seagreen]600[/color][color=red])[/color][color=gray]; In this example I set the opposite side to 600mm)[/color][color=red]([/color][color=royalblue]setq[/color] AngInDegrees-90 [color=red]([/color][color=royalblue]-[/color] AngInDegrees [color=seagreen]90[/color][color=red]))[/color][color=gray];I then minus 90 from the the 25 [/color] [color=red]([/color][color=royalblue]setq[/color] c [color=red]([/color][color=royalblue]/[/color] SIDE [color=red]([/color][color=royalblue]sin[/color] [color=red]([/color][color=royalblue]*[/color] AngInDegrees-90 [color=red]([/color][color=royalblue]/ pi [/color][color=seagreen]180[/color][color=red])))))[/color][color=gray];Do some formula[/color] [color=red]([/color][color=royalblue]setq[/color] b [color=red]([/color][color=royalblue]sqrt [/color][color=red]([/color][color=royalblue]-[/color] [color=red]([/color][color=royalblue]*[/color] c c[color=red])[/color] [color=red]([/color][color=royalblue]*[/color] SIDE SIDE[color=red]))))[/color][color=gray];Do some formula[/color]
What you end up with is a triangle where the opposite side equals 279.78mm. The value of SETQ b = 279.78mm
So it works and if you need to work out this type of triangle this formula will work. Just replace the variable names to suit your own needs.
I wrote all that out so if someone searches for it i the future it may be helpful....and someone might even find it from a google search |