473,387 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Measuring an angle

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 :o(

Any help would be greatly appreciated!

--
Lasse
Nov 20 '05 #1
3 2079
perhaps this will help.

http://www.themathpage.com/aTrig/tri...-triangles.htm

"Lasse Eskildsen" <Le******************@webspeed.dk> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
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 :o(

Any help would be greatly appreciated!

--
Lasse

Nov 20 '05 #2
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.

"Lasse Eskildsen" <Le******************@webspeed.dk> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
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 :o(

Any help would be greatly appreciated!

--
Lasse

Nov 20 '05 #3
OHM
As well as the others Remember this

Sin = Opposite/Hypotenuse
Cos = Adjacent/Hypotenuse
Tan = Opposite/Adjacent
"Lasse Eskildsen" <Le******************@webspeed.dk> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
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 :o(

Any help would be greatly appreciated!

--
Lasse

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Darren Grant | last post by:
Hi there, I've attempted to implement an Angle class. An Angle is a subset of an integer, where the range is [0,360). All other operations should be permitted. The code works, I think......
1
by: Ricardo Furtado | last post by:
I'm programming in vb .Net and i need to know how to determine angles. For example i have a figure like the following: | | | ------------------ | | |
29
by: Vol | last post by:
I think 'atan' can get the angle but it is not the four quadrant angle. Is there any function that i can get the angle from -pi to pi? or I have to use some if ... else? I know in Matlab, we use...
15
by: cwsullivan | last post by:
Hi gang, I have a grid full of particles in my program, and I want to find an angle between two particles. I'm having trouble because it seems like the answer depends on whether or not the target...
4
by: Jem | last post by:
Hi all I have the following code which draws a vertical line on a form... Dim VertCrossHairX1 As Integer = 75 Dim VertCrossHairX2 As Integer = 75 Dim VertCrossHairY1 As Integer = 70 Dim...
3
by: Doraj | last post by:
Hello ! Here is my problem : I had some php scripts which worked well with php 4.0.5 (GD 1.6.2 according to phpinfo() ) and i put them on a new server with php 4.4.2 (and GD 2.0.28). Now,...
2
by: laredotornado | last post by:
Hi, I'm using php 4.4.4. Maybe I'm misreading the docs, but in the imagettfbbox manual (http://us2.php.net/imagettfbbox), it says that text coordinates are the same regardless of what the angle...
3
by: drsmooth | last post by:
i am using graphics in a jframe to make a little game im working on...my problem is, i'm new to the application of physics to java...my question is, how do you calculate lets say a force acting on a...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.