7 lines
101 B
Plaintext
7 lines
101 B
Plaintext
|
|
struct Vec2 { x: f32, y: f32 }
|
|
|
|
impl Vec2 {
|
|
pub fn zero() -> Vec2 { Vec2 { x: 0.0, y: 0.0 } }
|
|
}
|