跳转至

CFBD_GraphicArc

Module: Arc Drawing

Represents a circular arc defined by center, radius, and angular range. More...

#include <arc.h>

Detailed Description

struct CFBD_GraphicArc;

Represents a circular arc defined by center, radius, and angular range.

An arc is a portion of a circle specified by a center point, radius, and a pair of angles defining the start and end of the arc.

Arc definition:

  • center: The center point of the circle from which the arc is drawn
  • radius: Distance from center to the arc edge, in device units
  • start_degree: Starting angle in degrees (0-359)
  • end_degree: Ending angle in degrees (0-359)

Angular convention:

  • 0° points horizontally right (3 o'clock)
  • Positive angles sweep counter-clockwise
  • Angles are automatically normalized to [0, 359]
  • If start_degree > end_degree, the arc wraps around 0°

Updated on 2026-02-03 at 13:21:55 +0000