code: public static void vNormalize(float[] v) {
          float d = (float) (1.0f / Math.sqrt(sqr(v[0]) + sqr(v[1]) + sqr(v[2])));
          if (d != 0) {
              v[0] *= d;
              v[1] *= d;
              v[2] *= d;
          }
      }
docs: / @param[in,out] v The vector to normalize. [(x, y, z)]