|
@@ -45,24 +45,10 @@ public class AttitudeJson : JCUnityLib.CustomJson
|
|
|
"Short",
|
|
"Short",
|
|
|
"ThresholdRate"
|
|
"ThresholdRate"
|
|
|
);
|
|
);
|
|
|
- InitJsonClass<EllipsoidFitting>(
|
|
|
|
|
- o => {
|
|
|
|
|
- var to = (EllipsoidFitting)o;
|
|
|
|
|
- JToken jt = new JObject();
|
|
|
|
|
- jt["Center"] = ToJTokenByImporter(to.Center);
|
|
|
|
|
- jt["CorrectMatrixArray"] = ToJTokenByImporter(to.CorrectMatrixArray);
|
|
|
|
|
- jt["Raduis"] = ToJTokenByImporter(to.Radius);
|
|
|
|
|
- return jt;
|
|
|
|
|
- },
|
|
|
|
|
- jt => {
|
|
|
|
|
- var o = new EllipsoidFitting(
|
|
|
|
|
- (Vector<double>)ParseByExporter(jt["Center"], typeof(Vector<double>)),
|
|
|
|
|
- null,
|
|
|
|
|
- (Vector<double>)ParseByExporter(jt["Radius"], typeof(Vector<double>))
|
|
|
|
|
- );
|
|
|
|
|
- o.CorrectMatrixArray = (double[][])ParseByExporter(jt["CorrectMatrixArray"], typeof(double[][]));
|
|
|
|
|
- return o;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ InitJsonClass<EllipsoidFitting>(() => new EllipsoidFitting(default, null, default),
|
|
|
|
|
+ "Center",
|
|
|
|
|
+ "CorrectMatrixArray",
|
|
|
|
|
+ "Radius"
|
|
|
);
|
|
);
|
|
|
InitJsonClass<Dictionary<Vector<int>, Vector<double>>>(
|
|
InitJsonClass<Dictionary<Vector<int>, Vector<double>>>(
|
|
|
o => JToken.FromObject(o),
|
|
o => JToken.FromObject(o),
|