Searched refs:mag (Results 1 – 2 of 2) sorted by relevance
214 float mag = (float) Math.sqrt(mag2); in normalizeVector() local215 v[0] = v[0] / mag; in normalizeVector()216 v[1] = v[1] / mag; in normalizeVector()217 v[2] = v[2] / mag; in normalizeVector()218 v[3] = v[3] / mag; in normalizeVector()
226 double mag = Math.sqrt(vector[0] * vector[0] + vector[1] * vector[1] + vector[2] in normalize() local228 vector[0] /= mag; in normalize()229 vector[1] /= mag; in normalize()230 vector[2] /= mag; in normalize()