The Length
property of the Vector2
struct returns the magnitude of the vector. The magnitude, or length, of a vector is a measure of its size, calculated as the square root of the sum of the squares of its components. This property is useful for determining the distance of the vector from the origin in a 2D space.