Skip to content

Commit

Permalink
Change Counterclockwise to CounterClockwise
Browse files Browse the repository at this point in the history
  • Loading branch information
Jondolf committed Nov 19, 2023
1 parent 8aa7975 commit 87f4296
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_math/src/primitives/dim2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl Triangle2d {
let [a, b, c] = self.vertices;
let area = (b - a).perp_dot(c - a);
if area > f32::EPSILON {
WindingOrder::Counterclockwise
WindingOrder::CounterClockwise
} else if area < -f32::EPSILON {
WindingOrder::Clockwise
} else {
Expand Down Expand Up @@ -337,7 +337,7 @@ mod tests {
Vec2::new(-1.0, -1.0),
Vec2::new(-0.5, -1.2),
);
assert_eq!(ccw_triangle.winding_order(), WindingOrder::Counterclockwise);
assert_eq!(ccw_triangle.winding_order(), WindingOrder::CounterClockwise);

// The clockwise triangle should be the same as the counterclockwise
// triangle when reversed
Expand Down
3 changes: 1 addition & 2 deletions crates/bevy_math/src/primitives/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ pub enum WindingOrder {
/// A clockwise winding order
Clockwise,
/// A counterclockwise winding order
Counterclockwise,
/// An invalid winding order indicating that it could not be computed reliably
CounterClockwise,
Invalid,
}

0 comments on commit 87f4296

Please sign in to comment.