normalize() to normalized()
[kaka/rust-sdl-test.git] / src / common.rs
index 0d82903..591d781 100644 (file)
@@ -18,7 +18,7 @@ impl Point2D<f64> {
         ((self.x * self.x) + (self.y * self.y)).sqrt()
     }
 
-    pub fn normalize(&self) -> Self {
+    pub fn normalized(&self) -> Self {
        let l = self.length();
        Self {
            x: self.x / l,