public void Test_FitTest() { var line = LineParams.FitLine(new List <PosXYZ>() { new PosXYZ(1d, 1d, 1.1d), new PosXYZ(2d, 2d, 2.2d), new PosXYZ(3d, 3d, 3.3d), new PosXYZ(44d, 44d, 44.4d), }); Console.WriteLine($"{line.Direction},{line.Origin}"); }
public void TestMethod_LineTest() { var line = LineParams.FitLine(new List <PosXYZ>() { new PosXYZ(0, 0, 1), new PosXYZ(0, 0, 2), new PosXYZ(0, 0, 3), }); Console.WriteLine($"FitLine:{line.Origin} {line.Direction}"); var dist = line.Distance(new PosXYZ(1, 1, 0)); Console.WriteLine($"Dist:{dist:F2}"); }