chaos_engine/
types.rs

1/// A Vector2 type containing X and Y.
2pub struct Vector2<T> {
3    pub x: T,
4    pub y: T,
5}
6
7impl<T> Vector2<T> {
8    pub fn new(x: T, y: T) -> Self {
9        Self { x, y }
10    }
11}