Search Results for

    Show / Hide Table of Contents

    Class MPoint

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

    Constructors

    | Edit this page View Source

    MPoint()

    Declaration
    public MPoint()
    | Edit this page View Source

    MPoint(MPoint)

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

    MPoint(double, double)

    Declaration
    public MPoint(double x, double y)
    Parameters
    Type Name Description
    double x
    double y

    Properties

    | Edit this page View Source

    MRect

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

    X

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

    Y

    Declaration
    public double Y { get; set; }
    Property Value
    Type Description
    double

    Methods

    | Edit this page View Source

    Copy()

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

    Distance(MPoint)

    Declaration
    public double Distance(MPoint point)
    Parameters
    Type Name Description
    MPoint point
    Returns
    Type Description
    double
    | Edit this page View Source

    Equals(MPoint?)

    Declaration
    public bool Equals(MPoint? point)
    Parameters
    Type Name Description
    MPoint point
    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

    GetHashCode()

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

    Offset(double, double)

    Declaration
    public MPoint Offset(double offsetX, double offsetY)
    Parameters
    Type Name Description
    double offsetX
    double offsetY
    Returns
    Type Description
    MPoint
    | Edit this page View Source

    Rotate(double)

    Calculates a new point by rotating this point clockwise about the origin (0,0)

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

    Angle to rotate clockwise (degrees)

    Returns
    Type Description
    MPoint

    Returns the rotated point

    | Edit this page View Source

    Rotate(double, MPoint)

    Calculates a new point by rotating this point clockwise about the specified center point

    Declaration
    public MPoint Rotate(double degrees, MPoint center)
    Parameters
    Type Name Description
    double degrees

    Angle to rotate clockwise (degrees)

    MPoint center

    MPoint about which to rotate

    Returns
    Type Description
    MPoint

    Returns the rotated point

    | Edit this page View Source

    Rotate(double, double, double)

    Calculates a new point by rotating this point clockwise about the specified center point

    Declaration
    public MPoint Rotate(double degrees, double centerX, double centerY)
    Parameters
    Type Name Description
    double degrees

    Angle to rotate clockwise (degrees)

    double centerX

    X coordinate of point about which to rotate

    double centerY

    Y coordinate of point about which to rotate

    Returns
    Type Description
    MPoint

    Returns the rotated point

    | Edit this page View Source

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Operators

    | Edit this page View Source

    operator +(MPoint, MPoint)

    Declaration
    public static MPoint operator +(MPoint point1, MPoint point2)
    Parameters
    Type Name Description
    MPoint point1
    MPoint point2
    Returns
    Type Description
    MPoint
    | Edit this page View Source

    operator *(MPoint, double)

    Declaration
    public static MPoint operator *(MPoint point1, double multiplier)
    Parameters
    Type Name Description
    MPoint point1
    double multiplier
    Returns
    Type Description
    MPoint
    | Edit this page View Source

    operator -(MPoint, MPoint)

    Declaration
    public static MPoint operator -(MPoint point1, MPoint point2)
    Parameters
    Type Name Description
    MPoint point1
    MPoint point2
    Returns
    Type Description
    MPoint

    Implements

    IEquatable<T>
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX