Exemplo n.º 1
0
 public bool SmartCheckIndexType(object[] options, int i)
 {
     if (IsVector(options[i]) && i < options.Length)
     {
         TLVectors tempVect = new TLVectors(options[i]);
         if (CheckIndexFieldTypeByString(options, i, new string[] { "x", "y", "z" }, true))
         {
             options[i] = new TLVector3(tempVect.x, tempVect.y, tempVect.z, tempVect.isRadian ? "radian" : "translate");
             return(true);
         }
         else if (CheckIndexFieldTypeByString(options, i, new string[] { "x", "y" }, true))
         {
             options[i] = new TLVector2(tempVect.x, tempVect.y, tempVect.isRadian ? "radian" : "translate");
             return(true);
         }
         else if (CheckIndexFieldTypeByString(options, i, new string[] { "x", "y", "z", "w" }, true))
         {
             //options[i] = new TLVector3(tempVect.x, tempVect.y, tempVect.z, tempVect.w, tempVect.isRadian ? "translate" : "radian");
             return(true);
         }
         else if (CheckIndexFieldTypeByString(options, i, new string[] { "u", "v" }, true))
         {
             //options[i] = new TLVector3(tempVect.u, tempVect.v);
             return(true);
         }
         ;
     }
     return(false);
 }
Exemplo n.º 2
0
 public ExecParams(TLVector2 parameter)
 {
     this.parameter = parameter;
     Init();
 }
Exemplo n.º 3
0
 public Exec(TLVector2 This)
 {
     x = new ExecParams(This);
     y = new ExecParams(This);
 }