mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-15 21:00:20 +00:00
Simplify method name
This commit is contained in:
parent
cd1844fc4f
commit
fdd53a88aa
@ -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,
|
||||
|
@ -58,7 +58,7 @@ impl<const D: usize> Triangle<D> {
|
||||
|
||||
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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user