coordinates/two_dimensional/
mod.rs1use std::ops::{Add, Neg, Sub};
2
3use num_traits::Float;
4
5use crate::traits::Positional;
6
7mod polar;
8mod vector2;
9
10pub use polar::*;
11pub use vector2::*;
12
13pub trait FullTwoDimensional<U> {}
15
16impl<T, U: Float> FullTwoDimensional<U> for T where
17 T: Positional<U> + TwoDimensionalConsts<U> + Add + Sub + Neg + Sized
18{
19}
20
21pub trait TwoDimensionalConsts<T: Float> {
23 const ORIGIN: Self;
25 const UP: Self;
27 const DOWN: Self;
29 const LEFT: Self;
31 const RIGHT: Self;
33}