1
0
Fork 0

fix(vector2d): order first by ‹y› then by ‹x›

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2023-12-18 19:21:18 +01:00
parent 2f324acea8
commit 69287d8a30
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -6,8 +6,8 @@ use std::ops::{Add, Index, IndexMut, Mul, Sub};
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct Vector2D<T> {
x: T,
y: T,
x: T,
}
impl<T> Vector2D<T> {