Grasshopper

algorithmic modeling for Rhino

Hi every1,

 

was wondering, in the latest version of GH, we do not have components to add or multiply 2 vectors. Does that mean we use general mathematical functions to add / multiply vectors? in that case, even the output that we get is generic numerical output and not vector output...can any1 advise please?

 

Regards,

Agneesh

Views: 3234

Replies to This Discussion

Yes, the standard mathematical components are used to operate on vectors. 

Adding two vectors with the standard addition component will result in a vector. Multiplying two vectors doesn't really make sense; you can multiply a vector by a scalar, or take a cross product of two vectors, both of which will result in a vector. You can also take the dot product of two vectors, which will give you a scalar result. 

Andrew,

 

thanks for clarifying. Yea, multiplying 2 vectors really doesnt make sense, what i had meant of multiplication of scalar with vector; in previous versions we had the function F*V.

 

Having said that, i have never used dot product or cross product, do u think you could give me some examples on where and why we should use dot / cross product?

 

regards,

Agneesh

Hi Agneesh,

 

dotproducts are usually very common within geometric algorithms. They are especially useful when angles between vectors need to be computed. Cross-products are used to find a vector that is perpendicular to two other vectors. 

 

But they are used all over, just like addition and multiplication of regular numbers is used all over.

 

--

David Rutten

david@mcneel.com

Turku, Finland

David,

 

thank you very much for this information. I might now just do some experiments with these components than!

 

regards,

Agneesh

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service