Dolda2000 GitWeb
/
kaka
/
rust-sdl-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated gitignore
[kaka/rust-sdl-test.git]
/
src
/
boll.rs
diff --git
a/src/boll.rs
b/src/boll.rs
index
abf6c87
..
5d09563
100644
(file)
--- a/
src/boll.rs
+++ b/
src/boll.rs
@@
-1,7
+1,7
@@
use core::render::Renderer;
use sdl2::rect::Rect;
use core::render::Renderer;
use sdl2::rect::Rect;
-use common::Point
2D
;
+use common::Point;
use sdl2::gfx::primitives::DrawRenderer;
use {SCREEN_HEIGHT, SCREEN_WIDTH};
use sdl2::gfx::primitives::DrawRenderer;
use {SCREEN_HEIGHT, SCREEN_WIDTH};
@@
-11,8
+11,8
@@
pub trait Boll {
}
pub struct SquareBoll {
}
pub struct SquareBoll {
- pub pos: Point
2D
<f64>,
- pub vel: Point
2D
<f64>,
+ pub pos: Point<f64>,
+ pub vel: Point<f64>,
}
impl Boll for SquareBoll {
}
impl Boll for SquareBoll {
@@
-56,7
+56,7
@@
pub struct CircleBoll {
}
impl CircleBoll {
}
impl CircleBoll {
- pub fn new(pos: Point
2D<f64>, vel: Point2D
<f64>) -> CircleBoll {
+ pub fn new(pos: Point
<f64>, vel: Point
<f64>) -> CircleBoll {
CircleBoll {
boll: SquareBoll { pos, vel },
}
CircleBoll {
boll: SquareBoll { pos, vel },
}