Improve documentation for lengthSquared