16 lines
302 B
Rust
16 lines
302 B
Rust
|
/// This source file includes some common things that tests are using.
|
||
|
|
||
|
#[derive(Debug, Default, Clone, Copy, PartialEq, PartialOrd)]
|
||
|
pub struct Vec2 {
|
||
|
pub x: f32,
|
||
|
pub y: f32,
|
||
|
}
|
||
|
|
||
|
impl Vec2 {
|
||
|
pub fn new(x: f32, y: f32) -> Self {
|
||
|
Self {
|
||
|
x,
|
||
|
y,
|
||
|
}
|
||
|
}
|
||
|
}
|