/** * @webref floatlist:method * @brief Divide a value */ public void div(int index, float amount) { if (index < count) { data[index] /= amount; } else { boundsProblem(index, "div"); } }
/** * @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"); } }
/** * @webref floatlist:method * @brief Multiply a value */ public void mult(int index, float amount) { if (index < count) { data[index] *= amount; } else { boundsProblem(index, "mult"); } }
/** * @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"); } }