Date: 2026-03-01T05:25:09+00:00

Actual source code: dellipse.c

      1: /*
      2:        Provides the calling sequences for all the basic Draw routines.
      3: */
      4: #include <petsc/private/drawimpl.h>

      6: /*@
      7:   PetscDrawEllipse - Draws an ellipse onto a drawable.

      9:   Not Collective

     11:   Input Parameters:
     12: + draw - The drawing context
     13: . x    - The x coordinate of the center
     14: . y    - The y coordinate of the center
     15: . a    - The major axes length
     16: . b    - The minor axes length
     17: - c    - The color

     19:   Level: beginner

     21: .seealso: `PetscDraw`, `PetscDrawRectangle()`, `PetscDrawTriangle()`, `PetscDrawMarker()`, `PetscDrawPoint()`, `PetscDrawString()`, `PetscDrawArrow()`
     22: @*/
     23: PetscErrorCode PetscDrawEllipse(PetscDraw draw, PetscReal x, PetscReal y, PetscReal a, PetscReal b, int c)
     24: {
     25:   PetscFunctionBegin;
     27:   PetscUseTypeMethod(draw, ellipse, x, y, a, b, c);
     28:   PetscFunctionReturn(PETSC_SUCCESS);
     29: }