Index: DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryPointString.cs
===================================================================
diff -u -r877 -r951
--- DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryPointString.cs (.../GeometryPointString.cs) (revision 877)
+++ DamEngine/trunk/src/Deltares.DamEngine.Data/Geometry/GeometryPointString.cs (.../GeometryPointString.cs) (revision 951)
@@ -436,7 +436,7 @@
}
///
- /// Gets the point at.
+ /// Gets the Point2D at the specified coordinates.
///
/// The x.
/// The z.
@@ -448,6 +448,19 @@
point.Z.AlmostEquals(z, GeometryPoint.Precision));
}
+ ///
+ /// Gets the GeometryPoint at the specified coordinates.
+ ///
+ /// The x.
+ /// The z.
+ ///
+ public GeometryPoint GetGeometryPointAt(double x, double z)
+ {
+ return Points.FirstOrDefault(
+ point => point.X.AlmostEquals(x, GeometryPoint.Precision) &&
+ point.Z.AlmostEquals(z, GeometryPoint.Precision));
+ }
+
//#Bka: this should never be 1 method! Split it into 2 methods
// It is used for sliplanes only and therefor uses Points instead of calcPoints
///