Grasshopper

algorithmic modeling for Rhino

Hi,

I'd like to calculate matrix multiplication by scripting C# in grasshopper.

I tried Matrix.Multiply method but get this massage,

'Multiply' does not contain a definition for 'Rhino.Geometry.Matrix'

Is there any solution for this ?

Best regards,

Shimpei

Views: 1008

Replies to This Discussion

If you are using Rhino.Geometry.Matrix instances, you should just be able to use the multiply operator *

Matrix a = ...;

Matrix b = ...;

Matrix c = a * b;

As long as a and b are multipliable, it will work.

Dear David,

Thank you for reply!

It works very smoothly!

Best,

Shimpei

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service