Tag Archives: tangent

Graph the sine, cosine, and tangent functions in C#

This example is mostly an exercise in drawing but it does demonstrate a few useful graphics techniques. When you enter minimum and maximum X and Y values and click the Graph button, the following code graphs the sine, cosine, and … Continue reading

Posted in algorithms, graphics, mathematics | Tagged , , , , , , , , , , , , , , , , , | 3 Comments

Find the tangent lines between two circles in C#

This example shows how you can find the tangent lines between two circles. Depending on how the circles are arranged, they can have 0, 2, or 4 tangent lines. If the circles don’t intersect, as on the left in Figure … Continue reading

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

Find the tangent lines between a point and a circle in C#

Finding the tangent lines between a point and a circle isn’t too hard if you’re familiar with the example Determine where two circles intersect in C#. Consider the figure on the right. R is the radius of the circle. You … Continue reading

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