现在在Swift3.0变为负数的方法中,需要改成这样:prefix func - (vector:Vector3) -> Vector3{
return Vector3(x:-vector.x,y:-vector.y,z:-vector.z)
}
return Vector3(x:-vector.x,y:-vector.y,z:-vector.z)
}
2017-03-28