code: function(dx, dy, ref) {
  
              // Revert the translation and measure the change in angle around x-axis.
              return this.clone().offset(-dx, -dy).theta(ref) - this.theta(ref);
          }
docs: Returns change in angle from my previous position (-dx, -dy) to my new position relative to ref point.