Simplify method name

This commit is contained in:
Hanno Braun 2022-10-13 14:21:27 +02:00
parent cd1844fc4f
commit fdd53a88aa
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ pub fn triangulate(
v2.point_surface, v2.point_surface,
]) ])
.expect("invalid triangle") .expect("invalid triangle")
.winding_direction(); .winding();
let required_winding = match coord_handedness { let required_winding = match coord_handedness {
Handedness::LeftHanded => Winding::Cw, Handedness::LeftHanded => Winding::Cw,

View File

@ -58,7 +58,7 @@ impl<const D: usize> Triangle<D> {
impl Triangle<2> { impl Triangle<2> {
/// Returns the direction of the line through the points of the triangle. /// 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 [pa, pb, pc] = self.points.map(|point| point.into());
let orient2d = robust_predicates::orient2d(&pa, &pb, &pc); let orient2d = robust_predicates::orient2d(&pa, &pb, &pc);