Ejemplo n.º 1
0
        public static AAB3 CreateFromPoints(IList <Vector3> points)
        {
            int count = points.Count;

            if (count > 0)
            {
                AAB3 result = AAB3.CreateFromPoint(points[0]);
                for (int i = 1; i < count; i++)
                {
                    result.Include(points[i]);
                }
                return(result);
            }
            return(default(AAB3));
        }
Ejemplo n.º 2
0
        public static AAB3 CreateFromPoints(Vector3[] points)
        {
            int num = points.Length;

            if (num > 0)
            {
                AAB3 result = AAB3.CreateFromPoint(ref points[0]);
                for (int i = 1; i < num; i++)
                {
                    result.Include(ref points[i]);
                }
                return(result);
            }
            return(default(AAB3));
        }
Ejemplo n.º 3
0
        public static AAB3 CreateFromPoints(IEnumerable <Vector3> points)
        {
            IEnumerator <Vector3> enumerator = points.GetEnumerator();

            enumerator.Reset();
            if (!enumerator.MoveNext())
            {
                return(default(AAB3));
            }
            AAB3 result = AAB3.CreateFromPoint(enumerator.Current);

            while (enumerator.MoveNext())
            {
                result.Include(enumerator.Current);
            }
            return(result);
        }