moved move out of vector lib

This commit is contained in:
Stephen McQuay 2013-09-28 09:44:54 -07:00
parent 40115fbc8c
commit 1f22a8b12f
1 changed files with 0 additions and 7 deletions

View File

@ -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()
}