ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

angles between lines

Solved!
Go to solution

It is a very elegant use of the complex math function but how can it be scaled for n > 2 dimension vector space? Using the Dot Products function ( and modifying the points generation FOR loop) the following code is valid for any n >= 2 value.

 angle between lines dot product.png

 

Ben64

 

Note: Where did the "quote" button went?

Message 11 of 16
(2,469 Views)

@ben64 wrote:

 

 

Note: Where did the "quote" button went?


It now has the quote symbol on it.  "           Right after bullet list, and numbered list.

0 Kudos
Message 12 of 16
(2,458 Views)

@RavensFan wrote:

@ben64 wrote:

 

 

Note: Where did the "quote" button went?


It now has the quote symbol on it.  "           Right after bullet list, and numbered list.


But it's missing on mobile 😞

0 Kudos
Message 13 of 16
(2,448 Views)

The quote button is there but is not working with a french installation of IE11.

 

Ben64

 

 

0 Kudos
Message 14 of 16
(2,443 Views)

@ben64 wrote:

It is a very elegant use of the complex math function but how can it be scaled for n > 2 dimension vector space? Using the Dot Products function ( and modifying the points generation FOR loop) the following code is valid for any n >= 2 value.


Cosine rule?

Angle Between Vectors.png

 

I'm not sure if it's easier though. Probably a bit faster, although you never know until you benchmark.

0 Kudos
Message 15 of 16
(2,408 Views)

wiebe@CARYA wrote:
Cosine rule?

Yes, that's basically a cleaner version of this old code above..

0 Kudos
Message 16 of 16
(2,381 Views)