示例#1
0
 public static void Serialize(EdgeLength instance, global::Improbable.Worker.CInterop.SchemaObject obj)
 {
     {
         obj.AddDouble(1, instance.X);
     }
     {
         obj.AddDouble(2, instance.Y);
     }
     {
         obj.AddDouble(3, instance.Z);
     }
 }
示例#2
0
            public static EdgeLength Deserialize(global::Improbable.Worker.CInterop.SchemaObject obj)
            {
                var instance = new EdgeLength();

                {
                    instance.X = obj.GetDouble(1);
                }
                {
                    instance.Y = obj.GetDouble(2);
                }
                {
                    instance.Z = obj.GetDouble(3);
                }
                return(instance);
            }
示例#3
0
 public bool Equals(EdgeLength other)
 {
     return(X.Equals(other.X) && Y.Equals(other.Y) && Z.Equals(other.Z));
 }