예제 #1
0
        public static Vector2 NormalizeOrZero(Vector2i value)
        {
            if (value.X == 0 && value.Y == 0)
            {
                return(Vector2.zero);
            }

            return(FlaiMath.Normalize(value));
        }