# find common tangent between point and path

24 views

### Carlo Jörges

Jan 18, 2023, 5:36:19 PMJan 18
to Paper.js
Hi,
was wondering if someone had an idea how to solve this problem using paperjs — I'm trying to find tangents of a path that pass through a given point (Point A). In the attached drawing I am looking for Point B & C, while Point A and the Path are known.

Any help is appreciated 🙏

### M M

Jan 19, 2023, 1:29:26 AMJan 19
to Paper.js
Is the path a mathematical formula (so you could calculate the minima)?  Or is it just a more or less randomly drawn path (so you’re looking for the visual bottom of the curve)?

### Carlo Jörges

Jan 19, 2023, 4:46:37 PMJan 19
I'm looking to solve it for any given paperjs path object. Essentially what I'm trying to do is draw a long extrusion of a shape towards a vantage point.

--
You received this message because you are subscribed to a topic in the Google Groups "Paper.js" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/paperjs/XZJdvQqgf5A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to paperjs+u...@googlegroups.com.

### M M

Jan 19, 2023, 8:17:04 PMJan 19
to Paper.js
Every path has a curves array.  You can use CurveLocation with neighboring items in the curves array to traverse the curve and get individual points on the curve.  Then just draw straight lines from these points to your vanishing point.