Esempio n. 1
0
        public Vector3 GetNormalized()
        {
            Vector3 newV = new Vector3(this.x, this.y, this.z);
            float   n    = this.length();

            if (n != 0)
            {
                newV.div(n);
                return(newV);
            }
            else
            {
                return(new Vector3(newV));
            }
        }