public void SortRadial() { var points = new List <Vector3> { new Vector3(13.0, 4.0), new Vector3(13.0, 4.0), new Vector3(13.0, 4.0), new Vector3(6.0, 11.0), new Vector3(6.0, 7.0), new Vector3(2.0, 7.0), new Vector3(2.0, 4.0), new Vector3(9.0, 0.0), new Vector3(9.0, 4.0), new Vector3(13.0, 7.0), new Vector3(9.0, 7.0), new Vector3(9.0, 11.0), new Vector3(6.0, 4.0), new Vector3(6.0, 0.0), }; var sorted = Shaper.SortRadial(points, new Vector3(7.5, 5.5)); Assert.Equal(12, sorted.Count()); Assert.Equal(6.0, sorted.First().X); Assert.Equal(0.0, sorted.First().Y); Assert.Equal(9.0, sorted.Last().X); Assert.Equal(0.0, sorted.Last().Y); }