normalize() to normalized()
[kaka/rust-sdl-test.git] / src / core / controller.rs
index 9d23257..23af1b2 100644 (file)
@@ -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.normalized()
        } else {
            p
        }