Grasshopper

algorithmic modeling for Rhino

Hi,

I would like to get the angle between two lines, without using vectors, in a vb component. I know that with Rhinoscript, you can use Rhino.Angle2(line1,line2). Is there any similar method with Rhinocommon/vb.net ?

Views: 3622

Replies are closed for this discussion.

Replies to This Discussion

Why don't you want to use vectors? Vectors are meant for this sort of thing.

Vector3d.VectorAngle allows you to compute both 3D and 2D angles and Line has a Direction property that returns a vector.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Thanks David,

I thought there was a method like in Rhinoscript, but using vectors is not a problem. I was just looking for the simpliest way to get the angle, and you gave me the answer.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service