Derive more traits for `Vertex`

This commit is contained in:
Hanno Braun 2022-02-21 14:51:27 +01:00
parent aa0cbe52de
commit b488abcb5b
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ pub struct Vertices(pub Vec<Vertex<3>>);
///
/// Points, on the other hand, might be used to approximate a shape for various
/// purposes, without presenting any deeper truth about the shape's structure.
#[derive(Clone, Copy, Debug)]
#[derive(Clone, Copy, Debug, Eq, Hash, PartialEq, Ord, PartialOrd)]
pub struct Vertex<const D: usize> {
location: Point<D>,