Changed Vector2d back to Vector3d.