From 911700676c8cbaea47334a568f17040359a5d036 Mon Sep 17 00:00:00 2001 From: Dander7BD Date: Fri, 14 Feb 2014 15:24:19 +0100 Subject: [PATCH] human error fix --- 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 e0c7bf9f..23fe0511 100644 --- a/Code/OysterMath/LinearMath.h +++ b/Code/OysterMath/LinearMath.h @@ -377,7 +377,7 @@ namespace LinearAlgebra3D inline ::LinearAlgebra::Vector3 AngularAxis( const ::LinearAlgebra::Quaternion &rotation ) { ScalarType angle = ScalarType(2) * (ScalarType)::std::acos( rotation.real ), - multiplier = angle / (ScalarType)::std::sqrt( rotation.real ); + multiplier = angle / (ScalarType)::std::sqrt( ScalarType(1) - rotation.real * rotation.real ); return multiplier * rotation.imaginary; }