Class SpatialRelationComparators
Inheritance
System.Object
SpatialRelationComparators
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Spatial4n.dll
Syntax
public static class SpatialRelationComparators
Methods
Name |
Description |
Combine(SpatialRelation, SpatialRelation)
|
If you were to call aShape.Relate(bShape) and aShape.Relate(cShape), you
could call this to merge the intersect results as if bShape & cShape were
combined into ShapeCollection.
|
Intersects(SpatialRelation)
|
Not DISJOINT, i.e. there is some sort of intersection.
|
Inverse(SpatialRelation)
|
If aShape.Relate(bShape) is r, then r.Inverse()
is Inverse(aShape).Relate(bShape) whereas
Inverse(shape) is theoretically the opposite area covered by a
shape, i.e. everywhere but where the shape is.
Note that it's not commutative! WITHIN.inverse().inverse() !=
WITHIN .
|
Transpose(SpatialRelation)
|
Given the result of shapeA.Relate(shapeB) , transposing that
result should yield the result of shapeB.Relate(shapeA) . There
is a corner case is when the shapes are equal, in which case actually
flipping the Relate() call will result in the same value -- either CONTAINS
or WITHIN; this method can't possible check for that so the caller might
have to.
|