Table of Contents

Struct ViewExtent

Namespace
EncDotNet.S100.Rendering.Scene
Assembly
EncDotNet.S100.Rendering.Scene.dll

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

MinX double

West edge.

MinY double

South edge.

MaxX double

East edge.

MaxY double

North edge.

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

double

MaxY

North edge.

public double MaxY { get; init; }

Property Value

double

MinX

West edge.

public double MinX { get; init; }

Property Value

double

MinY

South edge.

public double MinY { get; init; }

Property Value

double

Methods

Anchor(PointPaintOp)

Where to draw op in this view.

public (double X, double Y) Anchor(PointPaintOp op)

Parameters

op PointPaintOp

Returns

(double X, double Y)

Anchor(TextPaintOp)

Where to draw op in this view.

public (double X, double Y) Anchor(TextPaintOp op)

Parameters

op TextPaintOp

Returns

(double X, double Y)

Of(Viewport)

The extent of viewport.

public static ViewExtent Of(Viewport viewport)

Parameters

viewport Viewport

Returns

ViewExtent