This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-07-30 18:18:05

-db-
Scratcher
Registered: 2009-06-04
Posts: 100+

finding angle measures of triangles

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


http://i31.tinypic.com/2n8ofg4.jpg

Offline

 

#2 2009-07-30 20:38:10

-db-
Scratcher
Registered: 2009-06-04
Posts: 100+

Re: finding angle measures of triangles

can anyone please help?


http://i31.tinypic.com/2n8ofg4.jpg

Offline

 

#3 2009-07-30 20:53:43

The-Whiz
Scratcher
Registered: 2007-07-09
Posts: 1000+

Re: finding angle measures of triangles

I wish I could... I forgot everthing I know about trig.

Offline

 

#4 2009-07-30 22:40:06

billyedward
Scratcher
Registered: 2008-01-03
Posts: 500+

Re: finding angle measures of triangles

This should help you:
http://en.wikipedia.org/wiki/Triangle.
Good old wiki.


"I'd love to change the world, but they haven't released the source code yet."
Check out the latest version of Streak --> http://billy.scienceontheweb.net/Streak

Offline

 

#5 2009-07-30 22:46:18

-db-
Scratcher
Registered: 2009-06-04
Posts: 100+

Re: finding angle measures of triangles

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


http://i31.tinypic.com/2n8ofg4.jpg

Offline

 

#6 2009-07-31 13:31:54

hamsandwitch678
Scratcher
Registered: 2008-10-15
Posts: 100+

Re: finding angle measures of triangles

I have a project exactly like that.  It may be on the second or third page, though.  Maybe you could check it out!


You won't get in a jam when you add a little ham because when you add meat, your life will be sweet.                     .

Offline

 

#7 2009-07-31 13:43:57

RoyandAnna
Scratcher
Registered: 2009-07-21
Posts: 20

Re: finding angle measures of triangles

-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

 

#8 2009-07-31 14:39:46

-db-
Scratcher
Registered: 2009-06-04
Posts: 100+

Re: finding angle measures of triangles

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  hmm

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  hmm

Last edited by -db- (2009-07-31 15:01:40)


http://i31.tinypic.com/2n8ofg4.jpg

Offline

 

Board footer