LilyPath/DrawBatch.cs
/// <summary>
/// Adds a primitive arc path to the batch of figures to be rendered using up to the given number of subdivisions.
/// </summary>
/// <param name="pen">The pen supplying the color 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>
/// <param name="subdivisions">The number of subdivisions in a circle of the same arc radius.</param>
/// <exception cref="InvalidOperationException"><c>DrawPrimitiveArc</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>(subdivisions) * (arcAngle / 2PI)</c>.</remarks>
Adds a primitive arc path to the batch of figures to be rendered using up to the given number of subdivisions.
Adds a primitive arc path to the batch of figures to be rendered using up to the given number of subdivisions .
public void DrawPrimitiveArc (Pen pen, Vector2 p0, Vector2 p1, float height, int subdivisions)
        {
            if (!_inDraw)
                throw new InvalidOperationException();
            if (pen == null)
                throw new ArgumentNullException("pen");
            _pathBuilder.Reset();
            _pathBuilder.CalculateLengths = pen.NeedsPathLength;
            _pathBuilder.AddArc(p0, p1, height, subdivisions);
            if (_pathBuilder.Count > 1)
                DrawPrimitivePath(pen, _pathBuilder.Buffer, 0, _pathBuilder.Count, PathType.Open);
        }
public void DrawPrimitiveArc ( Pen pen , Vector2 p0 , Vector2 p1 , float height , int subdivisions ) { if ( ! _inDraw ) throw new InvalidOperationException ( ) ; if ( pen == null ) throw new ArgumentNullException ( " " ) ; _pathBuilder . Reset ( ) ; _pathBuilder . CalculateLengths = pen . NeedsPathLength ; _pathBuilder . AddArc ( p0 , p1 , height , subdivisions ) ; if ( _pathBuilder . Count > 1 ) DrawPrimitivePath ( pen , _pathBuilder . Buffer , 0 , _pathBuilder . Count , PathType . Open ) ; }
Adds a primitive arc path to the batch of figures to be rendered using up to the given number of subdivisions.
Adds a primitive arc path to the batch of figures to be rendered using up to the given number of subdivisions .
DrawPrimitiveArc has not yet been called.
DrawPrimitiveArc has not yet been called .
pen
Pen
The pen supplying the color to render the path with.
The pen supplying the color 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 .
subdivisions
int
The number of subdivisions in a circle of the same arc radius.
The number of subdivisions in a circle of the same arc radius .
remarks
The number of subdivisions in the arc is computed as (subdivisions) * (arcAngle / 2PI)
The number of subdivisions in the arc is computed as ( subdivisions ) * ( arcAngle / 2PI )