public static double GetDistance(Vector2d point1, Vector2d point2) { var dX = point1.X - point2.X; var dY = point1.Y - point2.Y; return Math.Sqrt(dX * dX + dY * dY); }
public void AddTo(Vector2d force) { X += force.X; Y += force.Y; }