Artemis.Engine.Maths.Geometry.VectorUtils.ToNormalized C# (CSharp) Method

ToNormalized() public static method

Return the normalization of a given vector.
public static ToNormalized ( Vector2 vec ) : Vector2
vec Vector2
return Vector2
        public static Vector2 ToNormalized(Vector2 vec)
        {
            return vec / vec.Length();
        }