Skip to content

Commit

Permalink
Simplify method name
Browse files Browse the repository at this point in the history
  • Loading branch information
hannobraun committed Feb 4, 2022
1 parent d379167 commit d2920e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/kernel/geometry/curves/circle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl Circle {
}
}

pub fn approx_vertices(&self, tolerance: f64, out: &mut Vec<Point<3>>) {
pub fn approx(&self, tolerance: f64, out: &mut Vec<Point<3>>) {
let radius = self.radius.magnitude();

// To approximate the circle, we use a regular polygon for which
Expand Down
2 changes: 1 addition & 1 deletion src/kernel/geometry/curves/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl Curve {
/// instead.
pub fn approx(&self, tolerance: f64, out: &mut Vec<Point<3>>) {
match self {
Self::Circle(circle) => circle.approx_vertices(tolerance, out),
Self::Circle(circle) => circle.approx(tolerance, out),
Self::Line(Line { a, b }) => out.extend([*a, *b]),
}
}
Expand Down

0 comments on commit d2920e4

Please sign in to comment.