SnapAngularAxis fix

accidently used asin instead of acos
This commit is contained in:
Dander7BD 2014-01-31 13:49:09 +01:00
parent ac635ccaef
commit 7a62121fa0
1 changed files with 1 additions and 1 deletions

View File

@ -752,7 +752,7 @@ namespace LinearAlgebra3D
{
::LinearAlgebra::Vector4<ScalarType> worldStartNormal( WorldAxisOf(Rotation(startAngularAxis), localStartNormal), (ScalarType)0 );
targetMem = ::LinearAlgebra::Vector4<ScalarType>( worldStartNormal.xyz.Cross(worldEndNormal.xyz), (ScalarType)0);
targetMem *= (ScalarType)::std::asin( worldStartNormal.Dot(worldEndNormal) );
targetMem *= (ScalarType)::std::acos( worldStartNormal.Dot(worldEndNormal) );
return targetMem += startAngularAxis;
}