Struct ViewExtent
The part of the world a view shows, in EPSG:3857 metres, for keeping area-placed symbols and text in view (see PlacementArea).
public readonly record struct ViewExtent : IEquatable<ViewExtent>
- Implements
- Inherited Members
Remarks
It is the viewport's north-up frame; on a rotated display the corners of the screen and of this frame differ slightly.
Constructors
ViewExtent(double, double, double, double)
The part of the world a view shows, in EPSG:3857 metres, for keeping area-placed symbols and text in view (see PlacementArea).
public ViewExtent(double MinX, double MinY, double MaxX, double MaxY)
Parameters
Remarks
It is the viewport's north-up frame; on a rotated display the corners of the screen and of this frame differ slightly.
Properties
MaxX
East edge.
public double MaxX { get; init; }
Property Value
MaxY
North edge.
public double MaxY { get; init; }
Property Value
MinX
West edge.
public double MinX { get; init; }
Property Value
MinY
South edge.
public double MinY { get; init; }
Property Value
Methods
Anchor(PointPaintOp)
Where to draw op in this view.
public (double X, double Y) Anchor(PointPaintOp op)
Parameters
opPointPaintOp
Returns
Anchor(TextPaintOp)
Where to draw op in this view.
public (double X, double Y) Anchor(TextPaintOp op)
Parameters
opTextPaintOp
Returns
Of(Viewport)
The extent of viewport.
public static ViewExtent Of(Viewport viewport)
Parameters
viewportViewport