xref: /petsc/src/sys/classes/draw/interface/dellipse.c (revision 811af0c4b09a35de4306c442f88bd09fdc09897d)
15c6c1daeSBarry Smith 
25c6c1daeSBarry Smith /*
35c6c1daeSBarry Smith        Provides the calling sequences for all the basic Draw routines.
45c6c1daeSBarry Smith */
5af0996ceSBarry Smith #include <petsc/private/drawimpl.h> /*I "petscdraw.h" I*/
65c6c1daeSBarry Smith 
75c6c1daeSBarry Smith /*@
85c6c1daeSBarry Smith   PetscDrawEllipse - Draws an ellipse onto a drawable.
95c6c1daeSBarry Smith 
105c6c1daeSBarry Smith   Not collective
115c6c1daeSBarry Smith 
125c6c1daeSBarry Smith   Input Parameters:
135c6c1daeSBarry Smith + draw - The drawing context
145c6c1daeSBarry Smith . x,y  - The center
155c6c1daeSBarry Smith . a,b  - The major and minor axes lengths
165c6c1daeSBarry Smith - c    - The color
175c6c1daeSBarry Smith 
185c6c1daeSBarry Smith   Level: beginner
195c6c1daeSBarry Smith 
20*811af0c4SBarry Smith .seealso: `PetscDraw`, `PetscDrawRectangle()`, `PetscDrawTriangle()`, `PetscDrawMarker()`, `PetscDrawPoint()`, `PetscDrawString()`, `PetscDrawArrow()`
215c6c1daeSBarry Smith @*/
229371c9d4SSatish Balay PetscErrorCode PetscDrawEllipse(PetscDraw draw, PetscReal x, PetscReal y, PetscReal a, PetscReal b, int c) {
235c6c1daeSBarry Smith   PetscFunctionBegin;
245c6c1daeSBarry Smith   PetscValidHeaderSpecific(draw, PETSC_DRAW_CLASSID, 1);
25dbbe0bcdSBarry Smith   PetscUseTypeMethod(draw, ellipse, x, y, a, b, c);
265c6c1daeSBarry Smith   PetscFunctionReturn(0);
275c6c1daeSBarry Smith }
28