SGModelPlacement::~SGModelPlacement ()
{
+ delete _location;
}
void
_elev_ft = elev_ft;
}
+void
+SGModelPlacement::setPosition(const SGGeod& position)
+{
+ _lon_deg = position.getLongitudeDeg();
+ _lat_deg = position.getLatitudeDeg();
+ _elev_ft = position.getElevationFt();
+}
+
void
SGModelPlacement::setRollDeg (double roll_deg)
{
_heading_deg = heading_deg;
}
+void
+SGModelPlacement::setOrientation (const SGQuatd& orientation)
+{
+ orientation.getEulerDeg(_heading_deg, _pitch_deg, _roll_deg);
+}
+
// end of model.cxx