Class ShardRegion
- Namespace
- SpatialNET.Network.Building
- Assembly
- SpatialNET.Network.Building.dll
A polygon of the host that gives the nodes in it a shard, usually a local network (ADR 0050).
public sealed record ShardRegion : IEquatable<ShardRegion>Inheritance
Implements
Inherited Members
Constructors
ShardRegion(IPolygon2D, long, TypeSet?)
A polygon of the host that gives the nodes in it a shard, usually a local network (ADR 0050).
public ShardRegion(IPolygon2D Area, long ShardId, TypeSet? AppliesTo = null)Parameters
AreaIPolygon2D-
The polygon; its boundary counts as inside.
ShardIdlong-
The shard.
AppliesToTypeSet?-
The types the region applies to, node and edge types;
nullfor every node. A real node matches by its type, a helper node by the types of its edges.
Properties
AppliesTo
The types the region applies to, node and edge types; null for every node. A real node matches by its type, a helper
node by the types of its edges.
public TypeSet? AppliesTo { get; init; }Property Value
Area
The polygon; its boundary counts as inside.
public IPolygon2D Area { get; init; }Property Value
ShardId
The shard.
public long ShardId { get; init; }