Table of Contents

Struct PluginMapViewport

Namespace
AcDream.Plugin.Abstractions
Assembly
AcDream.Plugin.Abstractions.dll

A rectangular map viewport in canonical world units.

public readonly record struct PluginMapViewport : IEquatable<PluginMapViewport>
Implements
Inherited Members

Constructors

PluginMapViewport(PluginMapPoint, double, double)

Makes a viewport around a centre point.

public PluginMapViewport(PluginMapPoint center, double width, double height)

Parameters

center PluginMapPoint

The point in the middle of the viewport.

width double

The east-to-west extent, in navigation units. Must be positive.

height double

The north-to-south extent, in navigation units. Must be positive.

Exceptions

ArgumentOutOfRangeException

The width or the height is zero or negative.

Properties

Center

The point in the middle of the viewport.

public PluginMapPoint Center { get; }

Property Value

PluginMapPoint

Height

The north-to-south extent, in navigation units.

public double Height { get; }

Property Value

double

Width

The east-to-west extent, in navigation units.

public double Width { get; }

Property Value

double