From ec91224a3374cad03b17ca89c8d1344884d59a94 Mon Sep 17 00:00:00 2001 From: Eric Berquist Date: Sun, 24 May 2020 13:33:09 -0400 Subject: [PATCH] Update C# Jarvis March to use points from Graham Scan --- contents/jarvis_march/code/csharp/Program.cs | 23 +++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/contents/jarvis_march/code/csharp/Program.cs b/contents/jarvis_march/code/csharp/Program.cs index 82ed6a04d..aa9c0a71c 100644 --- a/contents/jarvis_march/code/csharp/Program.cs +++ b/contents/jarvis_march/code/csharp/Program.cs @@ -13,14 +13,21 @@ static void Main(string[] args) // The points are represented by vectors here, but that doesn't really matter. var points = new List() { - new Vector(1, 3), - new Vector(2, 4), - new Vector(4, 0), - new Vector(1, 0), - new Vector(0, 2), - new Vector(2, 2), - new Vector(3, 4), - new Vector(3, 1), + new Vector(-5, 2), + new Vector(5, 7), + new Vector(-6, -12), + new Vector(-14, -14), + new Vector(9, 9), + new Vector(-1, -1), + new Vector(-10, 11), + new Vector(-6, 15), + new Vector(-6, -8), + new Vector(15, -9), + new Vector(7, -7), + new Vector(-2, -9), + new Vector(6, -5), + new Vector(0, 14), + new Vector(2, 8), }; var jarvisMarch = new JarvisMarch(); var giftWrap = jarvisMarch.Run(points);