length2 property Null safety

double length2

Length squared.

Implementation

double get length2 {
  double sum;
  sum = _v3storage[0] * _v3storage[0];
  sum += _v3storage[1] * _v3storage[1];
  sum += _v3storage[2] * _v3storage[2];
  return sum;
}