From fdd53a88aab7c19bdb8287f4d2c7ca4d75057d9d Mon Sep 17 00:00:00 2001 From: Hanno Braun Date: Thu, 13 Oct 2022 14:21:27 +0200 Subject: [PATCH] Simplify method name --- crates/fj-kernel/src/algorithms/triangulate/delaunay.rs | 2 +- crates/fj-math/src/triangle.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/fj-kernel/src/algorithms/triangulate/delaunay.rs b/crates/fj-kernel/src/algorithms/triangulate/delaunay.rs index bc45a4dee..bc1fcad1f 100644 --- a/crates/fj-kernel/src/algorithms/triangulate/delaunay.rs +++ b/crates/fj-kernel/src/algorithms/triangulate/delaunay.rs @@ -22,7 +22,7 @@ pub fn triangulate( v2.point_surface, ]) .expect("invalid triangle") - .winding_direction(); + .winding(); let required_winding = match coord_handedness { Handedness::LeftHanded => Winding::Cw, diff --git a/crates/fj-math/src/triangle.rs b/crates/fj-math/src/triangle.rs index 2c3cffb32..78f9836f4 100644 --- a/crates/fj-math/src/triangle.rs +++ b/crates/fj-math/src/triangle.rs @@ -58,7 +58,7 @@ impl Triangle { impl Triangle<2> { /// Returns the direction of the line through the points of the triangle. - pub fn winding_direction(&self) -> Winding { + pub fn winding(&self) -> Winding { let [pa, pb, pc] = self.points.map(|point| point.into()); let orient2d = robust_predicates::orient2d(&pa, &pb, &pc);