xref: /petsc/src/sys/classes/draw/interface/dellipse.c (revision 0619917b5a674bb687c64e7daba2ab22be99af31)
1 
2 /*
3        Provides the calling sequences for all the basic Draw routines.
4 */
5 #include <petsc/private/drawimpl.h> /*I "petscdraw.h" I*/
6 
7 /*@
8   PetscDrawEllipse - Draws an ellipse onto a drawable.
9 
10   Not Collective
11 
12   Input Parameters:
13 + draw - The drawing context
14 . x    - The x coordinate of the center
15 . y    - The y coordinate of the center
16 . a    - The major axes length
17 . b    - The minor axes length
18 - c    - The color
19 
20   Level: beginner
21 
22 .seealso: `PetscDraw`, `PetscDrawRectangle()`, `PetscDrawTriangle()`, `PetscDrawMarker()`, `PetscDrawPoint()`, `PetscDrawString()`, `PetscDrawArrow()`
23 @*/
24 PetscErrorCode PetscDrawEllipse(PetscDraw draw, PetscReal x, PetscReal y, PetscReal a, PetscReal b, int c)
25 {
26   PetscFunctionBegin;
27   PetscValidHeaderSpecific(draw, PETSC_DRAW_CLASSID, 1);
28   PetscUseTypeMethod(draw, ellipse, x, y, a, b, c);
29   PetscFunctionReturn(PETSC_SUCCESS);
30 }
31