示例#1
0
文件: Vector2f.cs 项目: vb0067/LGame
        public static Vector2f Mean(IList <Vector2f> points)
        {
            int n = points.Count;

            if (n == 0)
            {
                return(new Vector2f(0, 0));
            }
            return(Vector2f.Sum(points).Scale(1.0f / n));
        }