First three auxiliary vectors are required: Zaxis = normal(cameraPosition - cameraTarget) Xaxis = normal(cross(cameraUpVector, zaxis)) Yaxis = cross(zaxis, xaxis) With normal(v) = normalization of the vector v; cross(v1, v2) = cross product of v1 and v2.
Zuerst werden drei Hilfsvektoren benötigt: zaxis = normal(cameraPosition - cameraTarget) xaxis = normal(cross(cameraUpVector, zaxis)) yaxis = cross(zaxis, xaxis) Mit normal(v) = Normalisierung des Vektors v; cross(v1, v2) = Kreuzprodukt von v1 und v2.