Skip to main content

auburn/col/
point.rs

1use super::*;
2
3#[derive(Default, Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
4#[cfg_attr(feature = "bevy", derive(bevy::prelude::Component))]
5pub struct Point;
6
7impl From<()> for Point {
8    fn from(_: ()) -> Self {
9        Point
10    }
11}
12
13impl MinkowskiNegationIsIdentity for Point {}
14
15// impl<T: Copy> MinkowskiSum<T> for Point {
16//     type Output = T;
17//     fn minkowski_sum(&self, t: &T) -> Self::Output {
18//         *t
19//     }
20// }
21//
22// impl<T: Copy> MinkowskiSum<Point> for T {
23//     type Output = T;
24//     fn minkowski_sum(&self, t: &T) -> Self::Output {
25//         *t
26//     }
27// }