fix(vector2d): order first by ‹y› then by ‹x›
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
2f324acea8
commit
69287d8a30
1 changed files with 1 additions and 1 deletions
|
@ -6,8 +6,8 @@ use std::ops::{Add, Index, IndexMut, Mul, Sub};
|
||||||
|
|
||||||
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
|
||||||
pub struct Vector2D<T> {
|
pub struct Vector2D<T> {
|
||||||
x: T,
|
|
||||||
y: T,
|
y: T,
|
||||||
|
x: T,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T> Vector2D<T> {
|
impl<T> Vector2D<T> {
|
||||||
|
|
Loading…
Reference in a new issue