cleanup
This commit is contained in:
@@ -26,7 +26,6 @@ namespace TMI_practicum
|
|||||||
var (algorithm, _, circles) = ParseFile(args[0]);
|
var (algorithm, _, circles) = ParseFile(args[0]);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Stopwatch stopwatch = new Stopwatch();
|
Stopwatch stopwatch = new Stopwatch();
|
||||||
IEnumerable<Intersection> solved;
|
IEnumerable<Intersection> solved;
|
||||||
|
|
||||||
@@ -59,7 +58,8 @@ namespace TMI_practicum
|
|||||||
|
|
||||||
for (int i = 0; i < amount; i++)
|
for (int i = 0; i < amount; i++)
|
||||||
{
|
{
|
||||||
circles.Add(new Circle(Math.Round(rnd.NextDouble() * 1.0, 15), Math.Round(rnd.NextDouble() * 1.0, 15), Math.Round(rnd.NextDouble() * 0.01, 15)));
|
circles.Add(new Circle(Math.Round(rnd.NextDouble() * 1.0, 15), Math.Round(rnd.NextDouble() * 1.0, 15),
|
||||||
|
Math.Round(rnd.NextDouble() * 0.01, 15)));
|
||||||
}
|
}
|
||||||
|
|
||||||
return circles;
|
return circles;
|
||||||
@@ -67,7 +67,6 @@ namespace TMI_practicum
|
|||||||
|
|
||||||
private static void GetChartData()
|
private static void GetChartData()
|
||||||
{
|
{
|
||||||
|
|
||||||
var stopwatch = new Stopwatch();
|
var stopwatch = new Stopwatch();
|
||||||
|
|
||||||
//warmup
|
//warmup
|
||||||
@@ -98,7 +97,6 @@ namespace TMI_practicum
|
|||||||
|
|
||||||
private static (byte Algorithm, int NbCircles, IList<Circle> Circles) ParseFile(string path)
|
private static (byte Algorithm, int NbCircles, IList<Circle> Circles) ParseFile(string path)
|
||||||
{
|
{
|
||||||
|
|
||||||
byte algorithm = 0;
|
byte algorithm = 0;
|
||||||
int nbCircles = 0;
|
int nbCircles = 0;
|
||||||
Circle[] circles = null;
|
Circle[] circles = null;
|
||||||
|
@@ -131,7 +131,7 @@ namespace TMI_practicum
|
|||||||
{
|
{
|
||||||
private readonly double _x;
|
private readonly double _x;
|
||||||
private readonly double? _y;
|
private readonly double? _y;
|
||||||
public double Y => _y ?? double.MinValue;
|
private double Y => _y ?? double.MinValue;
|
||||||
private readonly SegmentType _type;
|
private readonly SegmentType _type;
|
||||||
private readonly int _identifier;
|
private readonly int _identifier;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user