Struct Viewport
  
  
  
  
  
  Assembly: Mapsui.dll
  Syntax
  
    public record struct Viewport : IEquatable<Viewport>
   
  Constructors
  
    |
    Edit this page
  
  
    View Source
  
  
  Viewport(double, double, double, double, double, double)
  
  
  Declaration
  
    public Viewport(double centerX, double centerY, double resolution, double rotation, double width, double height)
   
  Parameters
  
  Properties
  
    |
    Edit this page
  
  
    View Source
  
  
  CenterX
  The X coordinate of the center of the viewport in world coordinates
Declaration
  
    public double CenterX { readonly get; init; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  CenterY
  The Y coordinate of the center of the viewport in world coordinates
Declaration
  
    public double CenterY { readonly get; init; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Height
  Height of viewport in screen pixels
Declaration
  
    public double Height { readonly get; init; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Resolution
  Resolution of the viewport in units per pixel
Declaration
  
    public double Resolution { readonly get; init; }
   
  Property Value
  
  
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Rotation
  Viewport rotation from True North (clockwise degrees)
Declaration
  
    public double Rotation { readonly get; init; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  Width
  Width of viewport in screen pixels
Declaration
  
    public double Width { readonly get; init; }
   
  Property Value
  
  Operators
  
    |
    Edit this page
  
  
    View Source
  
  
  operator +(Viewport, Viewport)
  
  
  Declaration
  
    public static Viewport operator +(Viewport a, Viewport b)
   
  Parameters
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  operator /(Viewport, double)
  
  
  Declaration
  
    public static Viewport operator /(Viewport v, double d)
   
  Parameters
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  operator *(Viewport, double)
  
  
  Declaration
  
    public static Viewport operator *(Viewport v, double m)
   
  Parameters
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  operator -(Viewport, Viewport)
  
  
  Declaration
  
    public static Viewport operator -(Viewport a, Viewport b)
   
  Parameters
  
  Returns
  
  Implements
  
  Extension Methods