src/Transform.js
function _getLocalRotationFromWorldRotation(transform) {
  if(transform.parent === undefined)
    return transform.rotation;
  else
    return transform.parent.rotation.inverse().mul(transform.rotation);
}
function _getLocalRotationFromWorldRotation(transform) {
  if(transform.parent === undefined)
    return transform.rotation;
  else
    return transform.parent.rotation.inverse().mul(transform.rotation);
}
function _getLocalRotationFromWorldRotation ( transform ) { if ( transform . parent === undefined ) return transform . rotation ; else return transform . parent . rotation . inverse ( ) . mul ( transform . rotation ) ; }
Sets the local rotation of the transform according to the world rotation

@param {Transform} transform
Sets the local rotation of the transform according to the world rotation