From 4e7324e062d6bdd31de857130d57f1380c048076 Mon Sep 17 00:00:00 2001 From: tengge1 <930372551@qq.com> Date: Tue, 15 Jan 2019 11:55:50 +0800 Subject: [PATCH] Update Vector3.cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复bug。 --- THREE/Math/Vector3.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/THREE/Math/Vector3.cs b/THREE/Math/Vector3.cs index 3cbe7633..42a19678 100644 --- a/THREE/Math/Vector3.cs +++ b/THREE/Math/Vector3.cs @@ -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)