I’m trying to center the camera between 4 points (it’s a diablo-like camera), however I don’t understand which is the “center” between 4 points mathematically speaking.
I thought some algorithms but none of them satisfacted me.
“Center” means what you want it to mean. My first thought would be to average them (multiply each by .25 and add the results), but if that’s not what it means to you, program what it means to you.
mathematically speaking, p1 + p2 + p3 + p4 / x, where x is the number of points, p (p1, p2, p3, p4) are the pitches of each point, so you have to calculate the X,Y and Z, The calculations are