- _location->setPosition( _position.getLongitudeDeg(),
- _position.getLatitudeDeg(),
- _position.getElevationFt() );
- _location->setOrientation( _roll_deg, _pitch_deg, _heading_deg );
-
- const sgVec4 *t = _location->getTransformMatrix();
- SGMatrixd rotation;
- for (unsigned i = 0; i < 4; ++i)
- for (unsigned j = 0; j < 4; ++j)
- rotation(i, j) = t[j][i];
- SGVec3d pos(_location->get_absolute_view_pos());
- _transform->setTransform(pos, rotation);