Table of Contents

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

int

BE

Boundary(a) ∩ Exterior(b).

public int BE { get; }

Property Value

int

BI

Boundary(a) ∩ Interior(b).

public int BI { get; }

Property Value

int

EB

Exterior(a) ∩ Boundary(b).

public int EB { get; }

Property Value

int

EE

Exterior(a) ∩ Exterior(b).

public int EE { get; }

Property Value

int

EI

Exterior(a) ∩ Interior(b).

public int EI { get; }

Property Value

int

IB

Interior(a) ∩ Boundary(b).

public int IB { get; }

Property Value

int

IE

Interior(a) ∩ Exterior(b).

public int IE { get; }

Property Value

int

II

Interior(a) ∩ Interior(b).

public int II { get; }

Property Value

int

Methods

Equals(IntersectionMatrix)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(IntersectionMatrix other)

Parameters

other IntersectionMatrix

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj)

Parameters

obj object?

The object to compare with the current instance.

Returns

bool

true if obj and 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

pattern string

The pattern, e.g. TFF.

Returns

bool

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

string

Operators

operator ==(IntersectionMatrix, IntersectionMatrix)

Equality.

public static bool operator ==(IntersectionMatrix a, IntersectionMatrix b)

Parameters

a IntersectionMatrix
b IntersectionMatrix

Returns

bool

operator !=(IntersectionMatrix, IntersectionMatrix)

Inequality.

public static bool operator !=(IntersectionMatrix a, IntersectionMatrix b)

Parameters

a IntersectionMatrix
b IntersectionMatrix

Returns

bool