Calculating point on a circle’s circumference from angle in C#?

You forgot to add the center point:

result.Y = (int)Math.Round( centerPoint.Y + distance * Math.Sin( angle ) );
result.X = (int)Math.Round( centerPoint.X + distance * Math.Cos( angle ) );

The rest should be ok… (what strange results were you getting? Can you give an exact input?)

Leave a Comment