From 7a62121fa0f8ea5d0fbdf125f47276100282141c Mon Sep 17 00:00:00 2001 From: Dander7BD Date: Fri, 31 Jan 2014 13:49:09 +0100 Subject: [PATCH] SnapAngularAxis fix accidently used asin instead of acos --- Code/OysterMath/LinearMath.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/OysterMath/LinearMath.h b/Code/OysterMath/LinearMath.h index 0ec46b5c..9ea4bf42 100644 --- a/Code/OysterMath/LinearMath.h +++ b/Code/OysterMath/LinearMath.h @@ -752,7 +752,7 @@ namespace LinearAlgebra3D { ::LinearAlgebra::Vector4 worldStartNormal( WorldAxisOf(Rotation(startAngularAxis), localStartNormal), (ScalarType)0 ); targetMem = ::LinearAlgebra::Vector4( worldStartNormal.xyz.Cross(worldEndNormal.xyz), (ScalarType)0); - targetMem *= (ScalarType)::std::asin( worldStartNormal.Dot(worldEndNormal) ); + targetMem *= (ScalarType)::std::acos( worldStartNormal.Dot(worldEndNormal) ); return targetMem += startAngularAxis; }