Exemple #1
0
 static RotationDeformer.Desc[] ToRotationDeformerDescArray(object[] value)
 {
     RotationDeformer.Desc[] result = new RotationDeformer.Desc[value.Length];
     for (int i = 0; i < result.Length; ++i)
     {
         result[i] = (RotationDeformer.Desc)value[i];
     }
     return(result);
 }
Exemple #2
0
 public static RotationDeformer.Desc DeserializeRotationDeformerDesc(BinaryReader br)
 {
     RotationDeformer.Desc result = new RotationDeformer.Desc();
     result.CenterX  = DeserializeSingle(br);
     result.CenterY  = DeserializeSingle(br);
     result.ScaleX   = DeserializeSingle(br);
     result.ScaleY   = DeserializeSingle(br);
     result.Rotation = DeserializeSingle(br);
     return(result);
 }