Measuring an angle

L

Lasse Eskildsen

Hi,
I'm trying to measure an angle of a triangle in vb.net, but I'm not getting
it right.

This is my triangle (kind of):

A
l\
1 \
1 \
l \
- - - -
C B

I know the lengt of all 3 sides, and angle C is always 90 dregrees.
I've been working with the Tan() function from System.Math, but I can't make
it work :blush:(

Any help would be greatly appreciated!
 
J

Jay B. Harlow [MVP - Outlook]

Lasse,
Quiz for you: How many radians are in a Degree?

Remember the Math.Tan function works with Radians not degrees.

Hope this helps
Jay

P.S. for the answer to the quiz look up Math.Tan in the on-line help.
 
O

OHM

As well as the others Remember this

Sin = Opposite/Hypotenuse
Cos = Adjacent/Hypotenuse
Tan = Opposite/Adjacent
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top