mrdoob/three.js — pull request #2423 by WestLangley (2012-09-14 23:45:43+00:00)
Title: FIxed Gimbal lock cases in Vector3.setEulerFromRotationMatrix()

There was a bug when converting to Euler angles from a rotation matrix in the special case in which the second axis is rotated by + or - PI/2 (Gimbal lock cases). FIxes Issue #2391.