Add RotationByPoint function for widget class