Tag Archives: draw curve

Plot functions in C#, Part 3

This is the third example that shows how to plot functions that draw hearts. This time the function is: The following examples also draw heart-shaped functions. See the first for an explanation of how the programs work. Plot a heart-shaped … Continue reading

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

Plot functions in C#

This example shows how to plot functions. This example plots a function that represents a heart shape. The earlier example Plot a heart-shaped function in C# shows how to draw a relatively complex heart-shaped function. Recently I saw a much … Continue reading

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

Draw a Bezier curve by hand in C#

The example Draw a Bezier curve in C# shows how to use the Graphics class’s DrawBezier method to draw a Bezier curve. This post explains the equations that draw a Bezier curve and shows how you can use them to … Continue reading

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

Draw a Bezier curve in C#

This example shows how to use the Graphics class’s DrawBezier method to draw a Bezier curve. A Bezier curve connects two end points with a smooth curve. The shape of the curve is determined by two control points. The control … Continue reading

Posted in algorithms, drawing, geometry, graphics | Tagged , , , , , , , , , , | 1 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