List of utility methods to do Array Divide
void | divideVectors(float[] v1, float[] v2) divide Vectors if (v1.length != v2.length) { throw new IllegalArgumentException("Arrays lengths are different"); for (int i = 0; i < v1.length; i++) { if (v2[i] != 0) { v1[i] /= v2[i]; |
int | divisors(final int n, final int[] buffer) divisors if (n == 1) return 0; int d = 1; int idx = 0; while (d * 2 <= n) { if (n % d == 0) buffer[idx++] = d; ++d; ... |
float[] | divVec2(final float[] result, final float[] vector, final float scale) Divides a vector by param using given result float[], result = vector / scale result[0] = vector[0] / scale;
result[1] = vector[1] / scale;
return result;
|