From 1f22a8b12fd444ca102dc312ae1b6442004ada09 Mon Sep 17 00:00:00 2001 From: Stephen McQuay Date: Sat, 28 Sep 2013 09:44:54 -0700 Subject: [PATCH] moved move out of vector lib --- vectorpoint.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/vectorpoint.go b/vectorpoint.go index 8f38a1d..f3fdedb 100644 --- a/vectorpoint.go +++ b/vectorpoint.go @@ -110,13 +110,6 @@ func (v Vector2d) Normalize() Vector2d { return Vector2d{v.X / m, v.Y / m} } -func Move(d1, d2 Point2d, velocity float64, timeDelta float64) Point2d { - v := d2.Sub(d1) - v_norm := v.Normalize() - v_scaled := v_norm.Scale(velocity * timeDelta) - return d1.Add(v_scaled) -} - func Distance(p1, p2 Point2d) float64 { return p1.Sub(p2).Mag() }