Skip to content

Commit

Permalink
Add impl Neg for Face*.
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Jun 1, 2024
1 parent 1a2b646 commit a65f187
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions all-is-cubes-base/src/math/face.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,21 @@ impl Face7 {
}
}

impl ops::Neg for Face6 {
type Output = Self;
#[inline]
fn neg(self) -> Self::Output {
self.opposite()
}
}
impl ops::Neg for Face7 {
type Output = Self;
#[inline]
fn neg(self) -> Self::Output {
self.opposite()
}
}

impl From<Face6> for Face7 {
#[inline]
fn from(value: Face6) -> Self {
Expand Down

0 comments on commit a65f187

Please sign in to comment.