private void AssertProjectsToCorrectPosition(double newX, double newY, double newZ, double x, double y, double z) { var point = new Point(x, y, z); var newPoint = new EquirectangularProjector().ProjectPoint(point); Assert.AreEqual(newX, newPoint.X, 0.001); Assert.AreEqual(newY, newPoint.Y, 0.001); Assert.AreEqual(newZ, newPoint.Z, 0.001); }
public static void Main(string[] args) { var p = new Planet(5); p.Simulate(5000); var projector = new EquirectangularProjector(); var renderer = new MantleHeatRenderer(); var options = new CellRenderOptions { ShowCellOutline = false, ShowConvectionDirection = true }; var projection = projector.ProjectCells(renderer.RenderCells(p.Cells, options)); Console.WriteLine("{0} out of {1} displayed", projection.Cells.Count, p.Cells.Count); var s = SVGGenerator.GetSVG(projection); File.WriteAllText("testdatafromequirect.svg", s); }