From 6fb78ea7a9bf2110ad0f2704bb6ee58b650091f5 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Fri, 14 Jun 2024 13:36:32 +0100 Subject: [PATCH] Fix doc for Arc.perimeter --- src/arc.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/arc.rs b/src/arc.rs index 2c2ef96b..03e92af8 100644 --- a/src/arc.rs +++ b/src/arc.rs @@ -170,12 +170,9 @@ impl Shape for Arc { PI * x * y } - /// The perimeter of the ellipse. + /// The perimeter of the arc. /// - /// Note: Finding the perimeter of an ellipse is [fairly involved][wikipedia], - /// so for now we just approximate by using the bezier curve representation. - /// - /// [wikipedia]: https://en.wikipedia.org/wiki/Ellipse#Circumference + /// For now we just approximate by using the bezier curve representation. #[inline] fn perimeter(&self, accuracy: f64) -> f64 { self.path_segments(0.1).perimeter(accuracy)