示例#1
0
 /**
  * @webref floatlist:method
  * @brief Divide a value
  */
 public void div(int index, float amount) {
   if (index < count) {
     data[index] /= amount;
   } else {
     boundsProblem(index, "div");
   }
 }
示例#2
0
 /**
  * @webref floatlist:method
  * @brief Subtract from a value
  */
 public void sub(int index, float amount) {
   if (index < count) {
     data[index] -= amount;
   } else {
     boundsProblem(index, "sub");
   }
 }
示例#3
0
 /**
  * @webref floatlist:method
  * @brief Multiply a value
  */
 public void mult(int index, float amount) {
   if (index < count) {
     data[index] *= amount;
   } else {
     boundsProblem(index, "mult");
   }
 }
示例#4
0
 /**
  * @webref floatlist:method
  * @brief Add to a value
  */
 public void add(int index, float amount) {
   if (index < count) {
     data[index] += amount;
   } else {
     boundsProblem(index, "add");
   }
 }