Merge branch 'master' of github.com:tengge1/ShadowEditor

This commit is contained in:
liteng 2019-01-15 19:35:38 +08:00
commit 818a9c7ee2

View File

@ -521,7 +521,7 @@ namespace THREE
var theta = this.Dot(v) / (_Math.Sqrt(this.LengthSq() * v.LengthSq()));
// clamp, to handle numerical problems
return _Math.Cos(Math.Clamp(theta, -1, 1));
return _Math.Acos(Math.Clamp(theta, -1, 1));
}
public double DistanceTo(Vector3 v)