line.squaredLength()
Return the squared length of the line.
Useful for distance comparisons in which real length is not necessary (saves one Math.sqrt() operation).
Math.sqrt()