I am making a triangle thing similar to my "make a circle" project, and i want to be able to make a variable for each angle that automatically calculates the angle measure of the triangle. I would probably use something like Tan-1 or sine-1/cosine-1, right? i tried that, but i cant seem to join two numbers to get the tangent of them. i cant do
tan-1 of < variable and variable > It will only let me use one number. I'm not sure if this is the correct way even to figure out angle measures. The only information i have about the triangle is all 3 side lengths. i just need to figure out how to get the angle measures. please help, thanks
Offline
This should help you:
http://en.wikipedia.org/wiki/Triangle.
Good old wiki.
Offline
there's lots of good info there, but i'm afraid it doesnt help a whole lot. I found a way to measure the angle by making each angle point to the other two angles, and subtracting the difference in direction, but in some cases, the angle measure will go above 180 degrees. otherwise, i think i can figure out the angle measure ok. just the problem of the angle measure being to high now. any help would be great. If you need me to upload the project to take a look, i can
Offline
I have a project exactly like that. It may be on the second or third page, though. Maybe you could check it out!
Offline
-db- wrote:
there's lots of good info there, but i'm afraid it doesnt help a whole lot. I found a way to measure the angle by making each angle point to the other two angles, and subtracting the difference in direction, but in some cases, the angle measure will go above 180 degrees. otherwise, i think i can figure out the angle measure ok. just the problem of the angle measure being to high now. any help would be great. If you need me to upload the project to take a look, i can
Correct me if I am wrong, but haven't you already done the hard work. If you have the project already calculating the angle and your trouble is when the angle is greater than 180 degrees, then it would seem to me that you just need to add:
If <variable that is measurement of angle> is greater than 180
Set <variable to that is measurement of angle> to (360 - <variable that is measurement of angle>)
Did I make that clear?
Offline
RoyandAnna wrote:
Correct me if I am wrong, but haven't you already done the hard work. If you have the project already calculating the angle and your trouble is when the angle is greater than 180 degrees, then it would seem to me that you just need to add:
If <variable that is measurement of angle> is greater than 180
Set <variable to that is measurement of angle> to (360 - <variable that is measurement of angle>)
Did I make that clear?
that is 100% clear, and i tried it and it seemed to work. It worked just fine for the first angle, but when i used the same way for the second angle, the first one didn't work anymore. the second angle worked fine, but the 1st one didn't! i'm not sure what is happening, maybe it's just me. I will look over and see if it's something i did. otherwise i might need more help
edit: I'm not sure what is happening with this. sometimes i try it and the angles keep going to somewhere in the 200s, skip from 60 something to 200 something. its really wierd. now i really need help
Last edited by -db- (2009-07-31 15:01:40)
Offline