normalize method
Normalizes this.
Implementation
double normalize() {
final double l = length;
if (l == 0.0) {
return 0.0;
}
final double d = 1.0 / l;
_v3storage[0] *= d;
_v3storage[1] *= d;
_v3storage[2] *= d;
return l;
}
Normalizes this.
double normalize() {
final double l = length;
if (l == 0.0) {
return 0.0;
}
final double d = 1.0 / l;
_v3storage[0] *= d;
_v3storage[1] *= d;
_v3storage[2] *= d;
return l;
}