Merge pull request #401 from Vanille-N/master

Calculated sweep_angle in call to lyon::geom::Arc was actually end_angle
This commit is contained in:
Héctor Ramón 2020-06-11 16:46:47 +02:00 committed by GitHub
commit 2a516dfc48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -84,7 +84,7 @@ impl Builder {
radii: math::Vector::new(arc.radii.x, arc.radii.y),
x_rotation: math::Angle::radians(arc.rotation),
start_angle: math::Angle::radians(arc.start_angle),
sweep_angle: math::Angle::radians(arc.end_angle),
sweep_angle: math::Angle::radians(arc.end_angle - arc.start_angle),
};
let _ = self.raw.move_to(arc.sample(0.0));