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); }
public ExecParams(TLVector2 parameter) { this.parameter = parameter; Init(); }
public Exec(TLVector2 This) { x = new ExecParams(This); y = new ExecParams(This); }