Hi guys,

Maybe the following question is trivial, but my brain simply ceased to function at the moment, and I need little assistance.

Well, in short, I need a rotation around global Y-axis ( Fig.1 ). The following code demonstrates the transformation of local coordinate system, and the position of the āmissingā transformation.

```
double modelMat[16];
OGL::LoadIdentity(modelMat);
OGL::Translate(modelMat, 0, 0, -R);
// Missing rotation !!! :(
OGL::Rotate(modelMat, -DeltaLat, 1.0, 0.0, 0.0);
OGL::Rotate(modelMat, DeltaLon, 0.0, cos(Theta), sin(Theta));
OGL::Translate(modelMat, 0, 0, R);
```

DeltaLon and DeltaLat are longitudinal and latitudinal offsets of the local coordinate system relative to the central object, but I think they are irrelevant for the missing transformation. Theta is the absolute latitude.

Thank you in advance!