Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryData.cs
===================================================================
diff -u -r4184 -r4185
--- DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryData.cs (.../GeometryData.cs) (revision 4184)
+++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryData.cs (.../GeometryData.cs) (revision 4185)
@@ -38,8 +38,7 @@
private bool isRegeneratingGeometry;
private bool updatingSurfaceLine;
- private readonly Routines2D routines2D = new Routines2D();
-
+
///
/// Initializes a new instance of the class.
///
@@ -728,12 +727,12 @@
/// Line 2 GeometryPoint 2
/// Intersection coordinates
/// True if lines intersect each other
- private bool CheckIfIntersectStricktly(Point2D beginPoint1, Point2D endPoint1,
+ private static bool CheckIfIntersectStricktly(Point2D beginPoint1, Point2D endPoint1,
Point2D beginPoint2, Point2D endPoint2,
ref Point2D intersect)
{
Point2D ip;
- LineIntersection res = routines2D.DetermineIf2DLinesIntersectStrickly(beginPoint1, endPoint1,
+ LineIntersection res = Routines2D.DetermineIf2DLinesIntersectStrickly(beginPoint1, endPoint1,
beginPoint2, endPoint2, out ip);
if (ip != null)
{
@@ -753,7 +752,7 @@
/// Line 2 GeometryPoint 2
/// Intersection coordinates
/// True if lines intersect each other
- public bool CheckIfIntersect(double[] aL1P1, double[] aL1P2, double[] aL2P1, double[] aL2P2,
+ public static bool CheckIfIntersect(double[] aL1P1, double[] aL1P2, double[] aL2P1, double[] aL2P2,
ref double[] aIntersect)
{
var p1 = new Point2D(aL1P1[0], aL1P1[1]);