protected override void setJSON(JObject obj, BaseClassIfc host, HashSet <int> processed) { base.setJSON(obj, host, processed); if (mAxis1 > 0) { obj["Axis1"] = Axis1.getJson(this, processed); } if (mAxis2 > 0) { obj["Axis2"] = Axis2.getJson(this, processed); } obj["LocalOrigin"] = LocalOrigin.getJson(this, processed); if (!double.IsNaN(mScale)) { obj["Scale"] = Scale; } }
protected override void setJSON(JObject obj, BaseClassIfc host, SetJsonOptions options) { base.setJSON(obj, host, options); if (mAxis1 > 0) { obj["Axis1"] = Axis1.getJson(this, options); } if (mAxis2 > 0) { obj["Axis2"] = Axis2.getJson(this, options); } obj["LocalOrigin"] = LocalOrigin.getJson(this, options); if (!double.IsNaN(mScale)) { obj["Scale"] = Scale; } }