Tag Archives: draw ellipse

Let the user draw rubber band ellipses (or other shapes) in C#

The following code shows how the program lets the user draw rubber band ellipses. // The ellipses to draw. private List<Rectangle> Ellipses = new List<Rectangle>(); // The points for the new ellipse we are drawing. private Point StartPoint, EndPoint; private … Continue reading

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

See where two conic sections intersect in C#

This example uses techniques demonstrated in several earlier posts to let you see where two conic sections intersect. To use the example, click the left mouse button five times each to select one conic section> Then click the right mouse … Continue reading

Posted in algorithms, geometry, graphics, mathematics | Tagged , , , , , , , , , , , , , , , , , , , , , | 1 Comment

Select a conic section in C#

This example shows how you can let the user click five points to select a conic section. Recall that the equation for a conic section is: If you know the coordinates of some points on a conic section, then you … Continue reading

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

Draw a conic section from its polynomial equation in C#

This example shows how to draw a conic section from its polynomial equation. A previous series of posts explained how to find the intersection between two ellipses. See these posts for more information about that: See where two ellipses intersect … Continue reading

Posted in algorithms, geometry, graphics, mathematics | Tagged , , , , , , , , , , , , , , , , , , , | 4 Comments