protected virtual bool TestMinClearanceLine() { IGeometry gResult = (IGeometry)_objResult; if (_bIsDefaultTarget && _objGeometryA != null) { MinimumClearance c = new MinimumClearance(_objGeometryA); IGeometry gClearance = c.GetLine(); return gResult.EqualsNormalized(gClearance); } return false; }
public static Geometry minClearanceLine(Geometry g) { return(MinimumClearance.GetLine(g)); }
protected virtual bool TestMinClearance() { double dResult = (double)_objResult; if (_bIsDefaultTarget && _objGeometryA != null) { MinimumClearance c = new MinimumClearance(_objGeometryA); double dClearance = c.GetDistance(); return Math.Abs(dClearance - dResult) <= _dTolerance; } return false; }
public static double minClearance(Geometry g) { return(MinimumClearance.GetDistance(g)); }