private static void CheckLineEquals(double[][] expected, NTSGS.LineString actual, double tolerance) { var pointsCount = expected.Length; var dimensionCount = expected[0].Length; // Depends on 2D / 3D geometry dimensions for (var i = 0; i < pointsCount; i++) { for (var j = 0; j < dimensionCount; j++) { var exp = expected[i][j]; var res = actual.GetCoordinateN(i).CoordinateValue[j]; Assert.AreEqual(exp, res, tolerance); } } }
private void CheckLineEquals(double[][] expected, NTSG.LineString result, double tolerance) { var pointsCount = expected.Length; var dimensionCount = expected[0].Length; for (int i = 0; i < pointsCount; i++) { for (int j = 0; j < dimensionCount; j++) { var exp = expected[i][j]; var res = result.GetCoordinateN(i).CoordinateValue[j]; Assert.AreEqual(exp, res, tolerance); } } }