Exemplo n.º 1
0
        public static FVector3 Normalize(FVector3 value)
        {
            fint magnitude = FVector3.Magnitude(value);

            if (magnitude.raw > 1)
            {
                return(value / magnitude);
            }
            return(FVector3.zero);
        }
Exemplo n.º 2
0
        public void Normalize()
        {
            fint num = FVector3.Magnitude(this);

            if (num.raw > 1)
            {
                this /= num;
            }
            else
            {
                this = FVector3.zero;
            }
        }