Advanced gizmo

you could create some function out of this like:
float angle = calculateSomeAngle();