Skip to content

Commit

Permalink
Add Degenerate alias and docs for WindingOrder::Invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
Jondolf committed Nov 19, 2023
1 parent 87f4296 commit 89c6004
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/bevy_math/src/primitives/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ pub enum WindingOrder {
Clockwise,
/// A counterclockwise winding order
CounterClockwise,
/// An invalid winding order indicating that it could not be computed reliably.
/// This often happens in *degenerate cases* where the points lie on the same line
#[doc(alias = "Degenerate")]
Invalid,
}

0 comments on commit 89c6004

Please sign in to comment.