mirror of
https://github.com/italicsjenga/agb.git
synced 2025-01-26 00:56:38 +11:00
give access to underlying coordinates
This commit is contained in:
parent
161a429320
commit
77f6512ba9
1 changed files with 2 additions and 2 deletions
|
@ -454,8 +454,8 @@ impl<I: FixedWidthUnsignedInteger, const N: usize> Debug for Num<I, N> {
|
||||||
|
|
||||||
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
|
#[derive(Clone, Copy, PartialEq, Eq, Debug)]
|
||||||
pub struct Vector2D<T: Number> {
|
pub struct Vector2D<T: Number> {
|
||||||
x: T,
|
pub x: T,
|
||||||
y: T,
|
pub y: T,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: Number> Add<Vector2D<T>> for Vector2D<T> {
|
impl<T: Number> Add<Vector2D<T>> for Vector2D<T> {
|
||||||
|
|
Loading…
Add table
Reference in a new issue