Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Circle Chords of a Specific Length

$
0
0

I've searched high and low for a solution to this one, with no luck.  I want to calculate the ending point of a chord given a specific pixel length.

I have the center point of the circle, the radius, and a point (x,y in the illustration) on the circle.  I want the ending point (?,?) of a line a specific number of pixels away from x,y.

Something like...

function PointF GetChordPoint(PointF center, float radius, PointF start, float length)



Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>