give access to underlying coordinates

This commit is contained in:
Corwin Kuiper 2021-06-08 12:25:10 +01:00
parent 161a429320
commit 77f6512ba9

View file

@ -454,8 +454,8 @@ impl<I: FixedWidthUnsignedInteger, const N: usize> Debug for Num<I, N> {
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
pub struct Vector2D<T: Number> {
x: T,
y: T,
pub x: T,
pub y: T,
}
impl<T: Number> Add<Vector2D<T>> for Vector2D<T> {