len2

open override val len2: Float

Returns the squared euclidean length

This method is faster than Vector.len because it avoids calculating a square root. It is useful for comparisons, but not for getting exact lengths, as the return value is the square of the actual length.