Get scaling factor for normalizing a Vector3?

Hi there,
how can i calculate the factor for a Vector3 to come to its normalized Vector3?

Vector3 raw = new Vector3(10f, 5f, 10f);
Vector3 normalized = raw.normalized;
float factor = // some calculations

Debug.Log(normalized * factor == raw); // -> true

By definition, a normalized representation of a vector is unit length vector in the same direction.

Your “scaling factor” is just 1 / raw.magnitude.