Struct IntersectionMatrix
- Namespace
- SpatialNET
- Assembly
- SpatialNET.Extensions.dll
The DE-9IM intersection matrix: dimension of the intersection of interior (I), boundary (B) and exterior (E) of two geometries; −1 means empty ("F").
public readonly struct IntersectionMatrix : IEquatable<IntersectionMatrix>Implements
Inherited Members
Properties
BB
Boundary(a) ∩ Boundary(b).
public int BB { get; }Property Value
BE
Boundary(a) ∩ Exterior(b).
public int BE { get; }Property Value
BI
Boundary(a) ∩ Interior(b).
public int BI { get; }Property Value
EB
Exterior(a) ∩ Boundary(b).
public int EB { get; }Property Value
EE
Exterior(a) ∩ Exterior(b).
public int EE { get; }Property Value
EI
Exterior(a) ∩ Interior(b).
public int EI { get; }Property Value
IB
Interior(a) ∩ Boundary(b).
public int IB { get; }Property Value
IE
Interior(a) ∩ Exterior(b).
public int IE { get; }Property Value
II
Interior(a) ∩ Interior(b).
public int II { get; }Property Value
Methods
Equals(IntersectionMatrix)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IntersectionMatrix other)Parameters
otherIntersectionMatrix-
An object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object? obj)Parameters
objobject?-
The object to compare with the current instance.
Returns
- bool
-
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()Returns
- int
-
A 32-bit signed integer that is the hash code for this instance.
Matches(string)
Checks against a DE-9IM pattern of 9 characters: T (not empty), F (empty), * (any),
0/1/2 (exactly this dimension).
public bool Matches(string pattern)Parameters
patternstring-
The pattern, e.g.
TFF.
Returns
Exceptions
- ArgumentException
-
The pattern does not consist of 9 valid characters.
ToString()
The matrix as 9 characters (e.g. 212101212), row by row I, B, E.
public override string ToString()Returns
Operators
operator ==(IntersectionMatrix, IntersectionMatrix)
Equality.
public static bool operator ==(IntersectionMatrix a, IntersectionMatrix b)Parameters
Returns
operator !=(IntersectionMatrix, IntersectionMatrix)
Inequality.
public static bool operator !=(IntersectionMatrix a, IntersectionMatrix b)