Function rsvg::path_builder::arc_segment

source ·
pub(crate) fn arc_segment(
    c: (f64, f64),
    r: (f64, f64),
    x_axis_rotation: f64,
    th0: f64,
    th1: f64
) -> CubicBezierCurve
Expand description

Turns an arc segment into a cubic bezier curve.

Takes the center, the radii and the x-axis rotation of the ellipse, the angles of the start and end points, and returns cubic bezier curve parameters.