Grasshopper

algorithmic modeling for Rhino

Hi all,

I am new to grasshopper. I want to have a line tangent to a circle all the time.I know the equation of the circle with center (0, 0) and radius r is x² + y² = r².The equation of tangent to this circle at the point (x', y') on the circle is x'x + y'y = r². Is there any component i can use to  do this?

Thanks

Views: 4324

Replies to This Discussion

Hi.
I'm not sure I understand your question.
You have a Line with a fixed starting point and you want it to be always tangent to a moving/changing Circle, is that it? If so, I guess there will always be two possible directions where the line is tangent. How would you choose which one?

You know about these components, right? (Evaluate Curve and Line SDL)

Not sure if this is any help, but this GH-file will find 2 tangent points (T1,T2) on a circle (C) (that can vary in size and location) from a given point (P).

Well, at least I think it's a correct solution, it was made by trial and error...
Attachments:
Thanks Marten,

I am sorry i was not so clear in my last post.. Yes I want a line with a fixed starting point which is tangent to a given circle always(even if i change the radius of the circle). I was approaching this with the same definition you suggested earlier but i didn't had much luck with that. But this definition seems to do the trick...
Thanks again for all the help

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service