public void UpdateShape(IShapeE newShape) { if (ShapeUpdated != null) { ShapeUpdated(this, new ShapeUpdateEventArgs(this, newShape)); } }
public override bool FullyContains(IShapeE shapeE) { if (shapeE == null) { return(false); } return(Contains(shapeE.BoundingBox)); }
public override bool MostlyContains(IShapeE shapeE, double tolerance) { if (shapeE == null) { return(false); } RectangleE intersect = Intersect(shapeE.BoundingBox); return(intersect.Area / Area > tolerance); }
public static int Compare(IShapeE a, IShapeE b) { if (a.Equals(b)) { return 0; } if (a == null || a.BoundingBox == null) { return -1; } if (b == null || b.BoundingBox == null) { return 1; } return b.BoundingBox.CompareTo(a.BoundingBox); }
public static int Compare(IShapeE a, IShapeE b) { if (a.Equals(b)) { return(0); } if (a == null || a.BoundingBox == null) { return(-1); } if (b == null || b.BoundingBox == null) { return(1); } return(b.BoundingBox.CompareTo(a.BoundingBox)); }
public virtual bool FullyContains(IShapeE shapeE) { return false; }
public virtual bool MostlyContains(IShapeE shapeE, double tolerance) { return false; }
public bool MostlyContains(IShapeE shapeE) { return MostlyContains(shapeE, 0.95); }
public ShapeUpdateEventArgs(IShapeE oldShape, IShapeE newShape) { OldShape = oldShape; NewShape = newShape; }
public virtual bool FullyContains(IShapeE shapeE) { return(false); }
public virtual bool MostlyContains(IShapeE shapeE, double tolerance) { return(false); }
public bool MostlyContains(IShapeE shapeE) { return(MostlyContains(shapeE, 0.95)); }