1 2 3 4 5 6 7 8 9
use super::super::math::Vec2; #[derive(Clone)] pub enum Shape { CircleShape{center: Vec2, radius: f32}, LineShape{point1: Vec2, point2: Vec2}, ChainLineShape{points: Vec<Vec2>}, PolygonShape{points: Vec<Vec2>}, }