LilyPath/DrawBatch.cs
/// <summary>
/// Adds a primitive ellipse path to the batch of figures to be rendered.
/// </summary>
/// <param name="pen">The pen supplying the color to render the path with.</param>
/// <param name="center">The center of the ellipse.</param>
/// <param name="xRadius">The radius of the ellipse along the x-axis.</param>
/// <param name="yRadius">The radius of the ellipse along the y-acis.</param>
/// <param name="angle">The angle to rotate the ellipse by in radians.  Positive values rotate clockwise.</param>
/// <param name="subdivisions">The number of subdivisions (sides) to render the ellipse with.</param>
/// <exception cref="InvalidOperationException"><c>DrawPrimitiveEllipse</c> was called, but <see cref="Begin()"/> has not yet been called.</exception>
Adds a primitive ellipse path to the batch of figures to be rendered.
Adds a primitive ellipse path to the batch of figures to be rendered .
public void DrawPrimitiveEllipse (Pen pen, Vector2 center, float xRadius, float yRadius, float angle, int subdivisions)
        {
            if (!_inDraw)
                throw new InvalidOperationException();
            if (pen == null)
                throw new ArgumentNullException("pen");
            BuildEllipseGeometryBuffer(center, xRadius, yRadius, angle, subdivisions);
            DrawPrimitivePath(pen, _geometryBuffer, 0, subdivisions, PathType.Closed);
        }
public void DrawPrimitiveEllipse ( Pen pen , Vector2 center , float xRadius , float yRadius , float angle , int subdivisions ) { if ( ! _inDraw ) throw new InvalidOperationException ( ) ; if ( pen == null ) throw new ArgumentNullException ( " " ) ; BuildEllipseGeometryBuffer ( center , xRadius , yRadius , angle , subdivisions ) ; DrawPrimitivePath ( pen , _geometryBuffer , 0 , subdivisions , PathType . Closed ) ; }
Adds a primitive ellipse path to the batch of figures to be rendered.
Adds a primitive ellipse path to the batch of figures to be rendered .
DrawPrimitiveEllipse has not yet been called.
DrawPrimitiveEllipse 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 .
center
Vector2
The center of the ellipse.
The center of the ellipse .
xRadius
float
The radius of the ellipse along the x-axis.
The radius of the ellipse along the x - axis .
yRadius
float
The radius of the ellipse along the y-acis.
The radius of the ellipse along the y - acis .
angle
float
The angle to rotate the ellipse by in radians.  Positive values rotate clockwise.
The angle to rotate the ellipse by in radians . Positive values rotate clockwise .
subdivisions
int
The number of subdivisions (sides) to render the ellipse with.
The number of subdivisions ( sides ) to render the ellipse with .