コード例 #1
0
        protected List <Vector2> RemoveVertexDuplicates(List <Vector2> original, int precision = 3)
        {
            List <Vector2> copy = new List <Vector2>();

            for (int i = 0; i < original.Count; i++)
            {
                Vector2 v1 = Hedra.Round(original[i], precision);
                if (!copy.Contains(v1))
                {
                    copy.Add(v1);
                }
            }
            return(copy);
        }