mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
Merge branch 'master' of github.com:tengge1/ShadowEditor
This commit is contained in:
commit
818a9c7ee2
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user