point.normalize(len)

Normalize the point vector and return the point itself. In other words, scale the line segment between (0, 0) and the point in order for it to have a length of len. If len is not specified, it is considered to be 1 in which case a unit vector is computed.