.. include:: ../substitutions

.. oe:namespace:: OEDepict

.. meta::
   :keywords: OEDrawCurvedArrow

.. _OEDepict_OEDrawCurvedArrow:


.. oe:function:: OEDrawCurvedArrow


   .. oe:language:: c++ java csharp

      .. oe:api::

         void OEDrawCurvedArrow(OEImageBase& image, const OE2DPoint& center,
                                double bgnAngle, double endAngle,
                                double radius, bool clockwise, const OEPen& pen)

   .. oe:language:: python

      .. oe:api:: python

         OEDrawCurvedArrow(image: OEImageBase, center: OE2DPoint,
                           bgnAngle: float, endAngle: float, radius: float,
                           clockwise: bool, pen: OEPen) -> None

   Draws a curved arrow.
   See example in :ref:`Figure: Example of drawing curved arrows<figure_OEDrawCurvedArrow>`.

   .. _figure_OEDrawCurvedArrow:

   .. figure:: ../images/OEDrawCurvedArrow.*
      :align:  center

      **Example of drawing curved arrows**

   *image*
      The image in which the arrow is drawn.

   *center*
      The center of the arc.

   *bgnAngle*, *endAngle*
      The two endpoints of the arc (in degrees).
      Both angles are in degrees and their values have to be in a
      range of :math:`[0.0^{\circ}, 360.0^{\circ}]`.
      Angles are interpreted such that :math:`0.0^{\circ}` and
      :math:`360.0^{\circ}` degrees are at the *12 o'clock*
      position, :math:`90.0^{\circ}` degrees corresponds
      to *3 o'clock*, etc.

   *radius*
      The radius of the arc.

   *clockwise*
      The direction of the arrow.

   *pen*
      The graphical properties of the curved arrow.

   .. seealso::

      * :ref:`OEImageBase <OEDepict_OEImageBase>` class
      * :ref:`OE2DPoint <OEDepict_OE2DPoint>` class
      * :ref:`OEPen <OEDepict_OEPen>` class


