Struct SymbolRect
An axis-aligned rectangle in the coordinate space of a SymbolThinning call (for example EPSG:3857 metres).
public readonly record struct SymbolRect : IEquatable<SymbolRect>
- Implements
- Inherited Members
Constructors
SymbolRect(double, double, double, double)
An axis-aligned rectangle in the coordinate space of a SymbolThinning call (for example EPSG:3857 metres).
public SymbolRect(double MinX, double MinY, double MaxX, double MaxY)
Parameters
Properties
Everything
A rectangle that contains every finite point.
public static SymbolRect Everything { get; }
Property Value
MaxX
Maximum x.
public double MaxX { get; init; }
Property Value
MaxY
Maximum y.
public double MaxY { get; init; }
Property Value
MinX
Minimum x.
public double MinX { get; init; }
Property Value
MinY
Minimum y.
public double MinY { get; init; }
Property Value
Methods
Contains(double, double)
Returns true when (x, y) lies inside or on the edge.
public bool Contains(double x, double y)
Parameters
Returns
Inflate(double)
Returns this rectangle grown by margin on every side.
public SymbolRect Inflate(double margin)
Parameters
margindoubleThe margin to add.