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
normalize() to normalized()
[kaka/rust-sdl-test.git]
/
src
/
core
/
controller.rs
diff --git
a/src/core/controller.rs
b/src/core/controller.rs
index
9d23257
..
23af1b2
100644
(file)
--- a/
src/core/controller.rs
+++ b/
src/core/controller.rs
@@
-95,7
+95,7
@@
impl Stick {
pub fn to_point(&self) -> Point2D<f64> {
let p = point!(self.x as f64, self.y as f64);
if p.length() > 1.0 {
- p.normalize()
+ p.normalize
d
()
} else {
p
}