use core::render::Renderer;
-use sdl2::rect::Rect;
-
-use common::Point2D;
+use geometry::Point;
use sdl2::gfx::primitives::DrawRenderer;
+use sdl2::rect::Rect;
use {SCREEN_HEIGHT, SCREEN_WIDTH};
pub trait Boll {
}
pub struct SquareBoll {
- pub pos: Point2D<f64>,
- pub vel: Point2D<f64>,
+ pub pos: Point<f64>,
+ pub vel: Point<f64>,
}
impl Boll for SquareBoll {
}
impl CircleBoll {
- pub fn new(pos: Point2D<f64>, vel: Point2D<f64>) -> CircleBoll {
+ pub fn new(pos: Point<f64>, vel: Point<f64>) -> CircleBoll {
CircleBoll {
boll: SquareBoll { pos, vel },
}