LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Angle between two line independant of the universal Reference coordinate system

Solved!
Go to solution

The supplementary angle is also acceptable.  It is bisecting the angle between the two line segments on the other >than 180° side.

 

If you have two line segments that are at 180 to each other, and you bisect that, you'll have a segment that is perpendicular to those two.  That segment could be to either side.  Which one do you choose?

 

Now the poster sounds like they are defining the problem tighter and they only want the bisector of the "acute" angle between the segments.  So they need to check the angle of the bisector line segment with one of the others, and if it is greater than 90, add or subtract 180 from their bisector line segment.

0 Kudos
Message 11 of 13
(570 Views)

@RavensFan wrote:
Now the poster sounds like they are defining the problem tighter and they only want the bisector of the "acute" angle between the segments.  So they need to check the angle of the bisector line segment with one of the others, and if it is greater than 90, add or subtract 180 from their bisector line segment.


That's what I said 8 (or 9) posts up.

 

Cameron

 

To err is human, but to really foul it up requires a computer.
The optimist believes we are in the best of all possible worlds - the pessimist fears this is true.
Profanity is the one language all programmers know best.
An expert is someone who has made all the possible mistakes.

To learn something about LabVIEW at no extra cost, work the online LabVIEW tutorial(s):

LabVIEW Unit 1 - Getting Started</ a>
Learn to Use LabVIEW with MyDAQ</ a>
0 Kudos
Message 12 of 13
(561 Views)

Yes i need actually the angle between the lines... The reason why i was getting "-ve" angles was because of the IMAQ intersection VI. Here the angle reference (for example, 0 degrees) is the horizontal, right axis. The angle is computed from Line 1 to Line 2

 

Intersection Angle.JPG

 

Nghtcwrlr

---------------------------------------------------------------------------------------------
*************************************
---------------------------------------------------------------------------------------------
0 Kudos
Message 13 of 13
(541 Views)