Function cgl_rs::graphics::widgets::add_arc2f

source ·
pub fn add_arc2f(
    pos_x: f32,
    pos_y: f32,
    radius: f32,
    start_angle: f32,
    end_angle: f32,
    resolution: i32
)
Expand description

Adds an arc to the current frame.

Arguments

  • pos_x - A f32 representing the x-coordinate of the center of the arc.
  • pos_y - A f32 representing the y-coordinate of the center of the arc.
  • radius - A f32 representing the radius of the arc.
  • start_angle - A f32 representing the starting angle of the arc in radians.
  • end_angle - A f32 representing the ending angle of the arc in radians.
  • resolution - An i32 representing the number of segments used to approximate the arc.