LilyPath/DrawBatch.cs
/// <summary>
/// Computes and adds an arc path to the batch of figures to be rendered.
/// </summary>
/// <param name="pen">The pen to render the path with.</param>
/// <param name="p0">The starting point of the arc.</param>
/// <param name="p1">The ending point of the arc.</param>
/// <param name="height">The furthest point on the arc from the line connecting <paramref name="p0"/> and <paramref name="p1"/>.</param>
/// <exception cref="InvalidOperationException"><c>DrawArc</c> was called, but <see cref="Begin()"/> has not yet been called.</exception>
/// <remarks>The number of subdivisions in the arc is computed as <c>(radius / 1.5) * (arcAngle / 2PI)</c>.</remarks>
Computes and adds an arc path to the batch of figures to be rendered.
Computes and adds an arc path to the batch of figures to be rendered .
public void DrawArc (Pen pen, Vector2 p0, Vector2 p1, float height)
        {
            float width = (p1 - p0).Length();
            float radius = (height / 2) + (width * width) / (height * 8);
            DrawArc(pen, p0, p1, height, DefaultSubdivisions(radius));
        }
public void DrawArc ( Pen pen , Vector2 p0 , Vector2 p1 , float height ) { float width = ( p1 - p0 ) . Length ( ) ; float radius = ( height / 2 ) + ( width * width ) / ( height * 8 ) ; DrawArc ( pen , p0 , p1 , height , DefaultSubdivisions ( radius ) ) ; }
Computes and adds an arc path to the batch of figures to be rendered.
Computes and adds an arc path to the batch of figures to be rendered .
DrawArc has not yet been called.
DrawArc has not yet been called .
pen
Pen
The pen to render the path with.
The pen to render the path with .
p0
Vector2
The starting point of the arc.
The starting point of the arc .
p1
Vector2
The ending point of the arc.
The ending point of the arc .
height
float
The furthest point on the arc from the line connecting  and .
The furthest point on the arc from the line connecting and .
remarks
The number of subdivisions in the arc is computed as (radius / 1.5) * (arcAngle / 2PI)
The number of subdivisions in the arc is computed as ( radius / 1 . 5 ) * ( arcAngle / 2PI )