Point2D -> Point
[kaka/rust-sdl-test.git] / src / boll.rs
index abf6c87..5d09563 100644 (file)
@@ -1,7 +1,7 @@
 use core::render::Renderer;
 use sdl2::rect::Rect;
 
-use common::Point2D;
+use common::Point;
 use sdl2::gfx::primitives::DrawRenderer;
 use {SCREEN_HEIGHT, SCREEN_WIDTH};
 
@@ -11,8 +11,8 @@ 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 {
@@ -56,7 +56,7 @@ pub struct CircleBoll {
 }
 
 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 },
         }