Пример #1
0
 public string RowValuesToString(int cols, float x, float y, float z, float w)
 {
     if (cols == 1)
     {
         return(Formatter.Format(x));
     }
     else if (cols == 2)
     {
         return(Formatter.Format(x) + ", " + Formatter.Format(y));
     }
     else if (cols == 3)
     {
         return(Formatter.Format(x) + ", " + Formatter.Format(y) + ", " + Formatter.Format(z));
     }
     else
     {
         return(Formatter.Format(x) + ", " + Formatter.Format(y) + ", " + Formatter.Format(z) + ", " + Formatter.Format(w));
     }
 }
Пример #2
0
 public string RowValuesToString(int cols, Int32 x, Int32 y, Int32 z, Int32 w)
 {
     if (cols == 1)
     {
         return(Formatter.Format(x));
     }
     else if (cols == 2)
     {
         return(Formatter.Format(x) + ", " + Formatter.Format(y));
     }
     else if (cols == 3)
     {
         return(Formatter.Format(x) + ", " + Formatter.Format(y) + ", " + Formatter.Format(z));
     }
     else
     {
         return(Formatter.Format(x) + ", " + Formatter.Format(y) + ", " + Formatter.Format(z) + ", " + Formatter.Format(w));
     }
 }
Пример #3
0
 public string RowValuesToString(int cols, double x, double y, double z, double w)
 {
     if (cols == 1)
     {
         return(Formatter.Format(x));
     }
     else if (cols == 2)
     {
         return(Formatter.Format(x) + ", " + Formatter.Format(y));
     }
     else if (cols == 3)
     {
         return(Formatter.Format(x) + ", " + Formatter.Format(y) + ", " + Formatter.Format(z));
     }
     else
     {
         return(Formatter.Format(x) + ", " + Formatter.Format(y) + ", " + Formatter.Format(z) + ", " + Formatter.Format(w));
     }
 }