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

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