#include <vector>
#include <cstring>
-#include <osg/Math>
-
#include <simgear/scene/model/placement.hxx>
#include <simgear/scene/model/modellib.hxx>
#include <simgear/structure/exception.hxx>
<< t.getFormattedMessage() << t.getOrigin());
return;
}
-
+
Instance * instance = new Instance;
SGModelPlacement *model = new SGModelPlacement;
instance->model = model;
{
double testNan(double val) throw (sg_range_exception)
{
- if (osg::isNaN(val))
+ if (SGMisc<double>::isNaN(val))
throw sg_range_exception("value is nan");
return val;
}
{
SGModelPlacement* model = instance->model;
double lon, lat, elev, roll, pitch, heading;
+ lon = lat = elev = roll = pitch = heading = 0.0;
try {
// Optionally set position from properties