Tag Archives: pie slice hit testing

Determine which pie slice is under the mouse in C#

When the program starts, the following code initializes the pie chart’s parameters. // The pie chart’s center. private Point EllipseCenter; // The pie chart’s drawing area. private Rectangle EllipseRect; // The ellipse’s X and Y radii. private float EllipseRx, EllipseRy; … Continue reading

Posted in algorithms, drawing, graphics, mathematics | Tagged , , , , , , , , , , , , , , | Leave a comment