Skip to content

Instantly share code, notes, and snippets.

@pervognsen
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pervognsen/9866317 to your computer and use it in GitHub Desktop.
Save pervognsen/9866317 to your computer and use it in GitHub Desktop.
8.7 Circle through a point P and tangent to a line L with a given radius R.
Their solution: Three pages of formulas and two pages of code.
Geometric solution: The circle center C must lie on the circle with
center P and radius R and on the line resulting from displacing L by
distance R towards P. This is just a circle vs line intersection problem.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment