Method RelateContainsShortCircuits
RelateContainsShortCircuits()
Called by Relate(IShape) to determine whether to return early if it finds CONTAINS, instead of checking the remaining shapes. It will do so without calling this method if the "other" shape is a Point. If a remaining shape finds INTERSECTS, then INTERSECTS will be returned. The only problem with this returning true is that if some of the shapes overlap, it's possible that the result of Relate(IShape) could be dependent on the order of the shapes, which could be unexpected / wrong depending on the application. The default implementation returns true because it probably doesn't matter. If it does, a subclass could add a boolean flag that this method could return. That flag could be initialized to true only if the shapes are mutually disjoint.
Declaration
protected virtual bool RelateContainsShortCircuits()
Returns
Type | Description |
---|---|
System.Boolean |