lengthSquared method

double lengthSquared()

Get the squared length of the vector.

Implementation

double lengthSquared() {
  return dot(this);
}