GetMagnitude function

Learn technical details about the GetMagnitude function.