Replace Vector3f by Vector3d.