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
centerPluginMapPointThe point in the middle of the viewport.
widthdoubleThe east-to-west extent, in navigation units. Must be positive.
heightdoubleThe 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
Height
The north-to-south extent, in navigation units.
public double Height { get; }
Property Value
Width
The east-to-west extent, in navigation units.
public double Width { get; }