Search Results for

    Show / Hide Table of Contents

    Class MRect

    Inheritance
    object
    MRect
    MRaster
    Implements
    IEquatable<MRect>
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Mapsui
    Assembly: Mapsui.dll
    Syntax
    public class MRect : IEquatable<MRect>

    Constructors

    | Edit this page View Source

    MRect(MRect)

    Declaration
    public MRect(MRect rect)
    Parameters
    Type Name Description
    MRect rect
    | Edit this page View Source

    MRect(IEnumerable<MRect>)

    Declaration
    public MRect(IEnumerable<MRect> rects)
    Parameters
    Type Name Description
    IEnumerable<MRect> rects
    | Edit this page View Source

    MRect(double, double, double, double)

    Declaration
    public MRect(double minX, double minY, double maxX, double maxY)
    Parameters
    Type Name Description
    double minX
    double minY
    double maxX
    double maxY

    Properties

    | Edit this page View Source

    Bottom

    Declaration
    public double Bottom { get; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    BottomLeft

    Declaration
    public MPoint BottomLeft { get; }
    Property Value
    Type Description
    MPoint
    | Edit this page View Source

    BottomRight

    Declaration
    public MPoint BottomRight { get; }
    Property Value
    Type Description
    MPoint
    | Edit this page View Source

    Centroid

    Declaration
    public MPoint Centroid { get; }
    Property Value
    Type Description
    MPoint
    | Edit this page View Source

    Height

    Declaration
    public double Height { get; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    Left

    Declaration
    public double Left { get; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    Max

    Declaration
    public MPoint Max { get; }
    Property Value
    Type Description
    MPoint
    | Edit this page View Source

    MaxX

    Declaration
    public double MaxX { get; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    MaxY

    Declaration
    public double MaxY { get; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    Min

    Declaration
    public MPoint Min { get; }
    Property Value
    Type Description
    MPoint
    | Edit this page View Source

    MinX

    Declaration
    public double MinX { get; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    MinY

    Declaration
    public double MinY { get; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    Right

    Declaration
    public double Right { get; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    Top

    Declaration
    public double Top { get; }
    Property Value
    Type Description
    double
    | Edit this page View Source

    TopLeft

    Declaration
    public MPoint TopLeft { get; }
    Property Value
    Type Description
    MPoint
    | Edit this page View Source

    TopRight

    Declaration
    public MPoint TopRight { get; }
    Property Value
    Type Description
    MPoint
    | Edit this page View Source

    Vertices

    Returns the vertices in clockwise order from bottom left around to bottom right

    Declaration
    public IEnumerable<MPoint> Vertices { get; }
    Property Value
    Type Description
    IEnumerable<MPoint>
    | Edit this page View Source

    Width

    Declaration
    public double Width { get; }
    Property Value
    Type Description
    double

    Methods

    | Edit this page View Source

    Contains(MPoint?)

    Declaration
    public bool Contains(MPoint? point)
    Parameters
    Type Name Description
    MPoint point
    Returns
    Type Description
    bool
    | Edit this page View Source

    Contains(MRect)

    Declaration
    public bool Contains(MRect r)
    Parameters
    Type Name Description
    MRect r
    Returns
    Type Description
    bool
    | Edit this page View Source

    Copy()

    Declaration
    public MRect Copy()
    Returns
    Type Description
    MRect
    | Edit this page View Source

    Equals(MRect?)

    Declaration
    public bool Equals(MRect? other)
    Parameters
    Type Name Description
    MRect other
    Returns
    Type Description
    bool
    | Edit this page View Source

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetArea()

    Declaration
    public double GetArea()
    Returns
    Type Description
    double
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()
    | Edit this page View Source

    Grow(double)

    Declaration
    public MRect Grow(double amount)
    Parameters
    Type Name Description
    double amount
    Returns
    Type Description
    MRect
    | Edit this page View Source

    Grow(double, double)

    Declaration
    public MRect Grow(double amountInX, double amountInY)
    Parameters
    Type Name Description
    double amountInX
    double amountInY
    Returns
    Type Description
    MRect
    | Edit this page View Source

    Intersects(MRect?)

    Declaration
    public bool Intersects(MRect? rect)
    Parameters
    Type Name Description
    MRect rect
    Returns
    Type Description
    bool
    | Edit this page View Source

    Join(MRect?)

    Declaration
    public MRect Join(MRect? rect)
    Parameters
    Type Name Description
    MRect rect
    Returns
    Type Description
    MRect
    | Edit this page View Source

    Multiply(double)

    Adjusts the size by increasing Width and Heigh with (Width * Height) / 2 * factor.

    Declaration
    public MRect Multiply(double factor)
    Parameters
    Type Name Description
    double factor
    Returns
    Type Description
    MRect
    | Edit this page View Source

    Rotate(double)

    Calculates a new quad by rotating this rect about its center by the specified angle clockwise

    Declaration
    public MQuad Rotate(double degrees)
    Parameters
    Type Name Description
    double degrees

    Angle about which to rotate (degrees)

    Returns
    Type Description
    MQuad

    Returns the calculated quad

    | Edit this page View Source

    ToString()

    Returns a string representation of the vertices from bottom-left and top-right

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    Returns the string

    Overrides
    object.ToString()

    Implements

    IEquatable<T>

    Extension Methods

    MRectExtensions.ToExtent(MRect)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX