Turf: Feature request: finding tangents to polygon from a point

Created on 7 Apr 2017  路  5Comments  路  Source: Turfjs/turf

It would be very useful to have a feature to find two possible tangents from a point to polygon.
polytangents

new-feature

Most helpful comment

This page might provide some good guidance
http://geomalgorithms.com/a15-_tangents.html

All 5 comments

Hi @dhivehi

Are you aware of any algorithms that exist that could be used for this calculation?

Cheers

This page might provide some good guidance
http://geomalgorithms.com/a15-_tangents.html

The only algorithms i found is from this link http://geomalgorithms.com/a15-_tangents.html
But I donno how to write it in js. Another algorithm could be algorithms which is used to find shadows of an object from a light

Got a first cut of this functioning, just writing up some tests before I send through the pull request.

Now available

Was this page helpful?
0 / 5 - 0 ratings