コード例 #1
0
        public static Vector3RightHand Normalize(Vector3RightHand value)
        {
            float num = Vector3RightHand.Magnitude(value);

            if (num > 1E-05f)
            {
                return(value / num);
            }
            return(Vector3RightHand.zero);
        }
コード例 #2
0
        public void Normalize()
        {
            float num = Vector3RightHand.Magnitude(this);

            if (num > 1E-05f)
            {
                this /= num;
            }
            else
            {
                this = Vector3RightHand.zero;
            }
        }