Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit d1723673 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

finally got EngineOnlyDrivingTest to work again. (remark:...

finally got EngineOnlyDrivingTest to work again. (remark: DelauneyTriangulation is _really_ very sensitive to scaled values).
parent cdb5637f
No related branches found
No related tags found
No related merge requests found
......@@ -115,7 +115,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Data.Engine
fuelConsumptionMap._entries.Add(entry);
// Delauney map works only as expected, when the engineSpeed is in rpm.
fuelConsumptionMap._fuelMap.AddPoint(entry.EngineSpeed.SI().Radian.Per.Second.To().Rounds.Per.Minute, entry.Torque, entry.FuelConsumption);
fuelConsumptionMap._fuelMap.AddPoint(row.ParseDouble(Fields.EngineSpeed), entry.Torque, entry.FuelConsumption);
}
catch (Exception e)
{
......
......@@ -259,12 +259,12 @@ namespace TUGraz.VectoCore.Utils
var result = p0square * det12 + p1square * det20 + p2square * det01;
return result.IsPositive();
return result > 0;
}
private bool Contains(Point p)
{
return P1.Equals(p) || P2.Equals(p) || P3.Equals(p);
return p.Equals(P1) || p.Equals(P2) || p.Equals(P3);
}
public bool SharesVertexWith(Triangle t)
......
using System;
using System.IO;
using System.Reflection;
using System.Data;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using TUGraz.VectoCore.Models.Simulation.Data;
using TUGraz.VectoCore.Models.Simulation.Impl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment