case props::DOUBLE:
{
double dv = (*node)->getDoubleValue();
- if (osg::isNaN(dv)) {
+ if (SGMisc<double>::isNaN(dv)) {
SG_LOG(SG_NASAL, SG_ALERT, "Nasal getValue: property " << (*node)->getPath() << " is NaN");
return naNil();
}
naRuntimeError(c, "props.setValue() with non-number");
double d = naNumValue(val).num;
- if (osg::isNaN(d)) {
+ if (SGMisc<double>::isNaN(d)) {
naRuntimeError(c, "props.setValue() passed a NaN");
}
if (naIsNil(r))
naRuntimeError(c, "props.setDoubleValue() with non-number");
- if (osg::isNaN(r.num)) {
+ if (SGMisc<double>::isNaN(r.num)) {
naRuntimeError(c, "props.setDoubleValue() passed a NaN");
}