Update documentation of Winding

This commit is contained in:
Hanno Braun 2025-03-21 21:32:47 +01:00
parent f2218ee044
commit 5a4e7856f6

View File

@ -133,23 +133,23 @@ where
}
}
/// Winding direction of a triangle.
/// # Winding direction of a triangle.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Hash, Ord, PartialOrd)]
pub enum Winding {
/// Counter-clockwise
/// # Counter-clockwise winding
Ccw,
/// Clockwise
/// # Clockwise winding
Cw,
}
impl Winding {
/// Indicate whether the winding is counter-clockwise
/// # Indicate whether the winding is counter-clockwise
pub fn is_ccw(&self) -> bool {
matches!(self, Self::Ccw)
}
/// Indicate whether the winding is clockwise
/// # Indicate whether the winding is clockwise
pub fn is_cw(&self) -> bool {
matches!(self, Self::Cw)
}