Often in 3D applications, like graphing programs and modelling programs, you’ll be able to click somewhere on the screen and drag your mouse around, and the whole scene will rotate around the origin accordingly. I was wondering, what’s the agreed upon math behind this? Has anyone done anything like this before? How should you translate the dragging on the mouse on the screen into rotation around the origin?
Thanks