Home  |  Index  |  Dotnet4all Snippets  |  Submit resources
About  |  Mail us  
Dotnet4all Logo

  Measuring an angle (Tuesday, December 21, 2004)




Found the following interesting discussion in the Newsgroups:

Measuring an angle
by: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
l1 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 :o(

Any help would be greatly appreciated!

--
Lasse


 Reply:
by:CJ Taylor

 perhaps this will help.

http://www.themathpage.com/aTrig/trigonometry-of-right-triangles.htm


 Reply:
by: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.


 Reply:
by:OHM

  As well as the others Remember this

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








0 Comments:

Post a Comment

 
Previous Posts
    - Unable to upgrade VB6 COM Dll to VB.Net
    - TypeConverter.CreateInstance-Method
    - vb.net & word
    - How to let GUI application write output to command...
    - Copy object with .Net?
    - Find the cursor position in a textbox
    - Extracting Image Metadata
    - NTFS Folder Permissions
    - To suspend the events
    - Get network status through WMI

Archives
    - 10/03/2004 - 10/10/2004
    - 10/10/2004 - 10/17/2004
    - 10/17/2004 - 10/24/2004
    - 10/24/2004 - 10/31/2004
    - 10/31/2004 - 11/07/2004
    - 11/21/2004 - 11/28/2004
    - 11/28/2004 - 12/05/2004
    - 12/05/2004 - 12/12/2004
    - 12/12/2004 - 12/19/2004
    - 12/19/2004 - 12/26/2004
    - 12/26/2004 - 01/02/2005
    - 01/23/2005 - 01/30/2005
    - 01/01/2006 - 01/08/2006
    - 09/24/2006 - 10/01/2006

Disclaimer & Terms of Use  | DotNet4All.Com concept & © 2004 - 2007 by  Zelders²  - Holland