use rootvg_core::math::{Angle, Point, Vector};
#[derive(Debug, Clone, Copy)]
pub struct ArcPath {
pub center: Point,
pub radius: f32,
pub start_angle: Angle,
pub end_angle: Angle,
}
#[derive(Debug, Clone, Copy)]
pub struct EllipticalArcPath {
pub center: Point,
pub radii: Vector,
pub rotation: Angle,
pub start_angle: Angle,
pub end_angle: Angle,
}
impl From<ArcPath> for EllipticalArcPath {
fn from(arc: ArcPath) -> Self {
Self {
center: arc.center,
radii: Vector::new(arc.radius, arc.radius),
rotation: Angle::default(),
start_angle: arc.start_angle,
end_angle: arc.end_angle,
}
}
}