Jump to content

[SOLVED] Trig.


Michdd

Recommended Posts

I'm starting to pull my hair out.. This seems like a really simple problem but I haven't worked with trig in a while, now I feel really lost..

 

I have a line that can be on any angle. I will have the angle of that line, and the width of it. What I want to get is the height from the line at 0Degrees, to the tip of where it is now.

 

So essentially we have a triangle; hypotenuse is 40, angle a is X and we need to find side a..

 

I thought I'd do 40 * sin(X), but that obviously isn't right.. Because say X is 4, then I get like -30.. and side can't be negative.

 

Totally confused :S

 

Edit: here's a picture to help get my point across..

 

trig.jpg

 

Given the value of X (Angle A), I need to find the length of side a.

Link to comment
https://forums.phpfreaks.com/topic/174869-solved-trig/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.