Merge pull request #231 from hannobraun/vertex

Derive more traits for `Vertex`
This commit is contained in:
Hanno Braun 2022-02-21 17:07:59 +01:00 committed by GitHub
commit d07ab745b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 /// 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. /// 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> { pub struct Vertex<const D: usize> {
location: Point<D>, location: Point<D>,