Search Results for

    Show / Hide Table of Contents

    Class RotationCalculations

    Inheritance
    object
    RotationCalculations
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Utilities
    Assembly: Mapsui.dll
    Syntax
    public static class RotationCalculations

    Methods

    | Edit this page View Source

    CalculateRotationDeltaWithSnapping(double, double, double, double)

    Calculates the rotation delta taking into account the snapping parameters.

    Declaration
    public static double CalculateRotationDeltaWithSnapping(double virtualRotation, double actualRotation, double unSnapRotation, double reSnapRotation)
    Parameters
    Type Name Description
    double virtualRotation

    The virtual rotation that is determined by the users rotating pinch behavior.

    double actualRotation

    The rotation of the viewport of the map. This rotation is visible in the map.

    double unSnapRotation

    The minimal value of the virtual rotation needed to unsnap (allow rotation other than 0).

    double reSnapRotation

    If the virtual rotation is below this value the map will resnap (rotation will be set to 0).

    Returns
    Type Description
    double
    | Edit this page View Source

    NormalizeRotation(double)

    Declaration
    public static double NormalizeRotation(double rotation)
    Parameters
    Type Name Description
    double rotation
    Returns
    Type Description
    double
    | Edit this page View Source

    RotationShortestDistance(double, double)

    Declaration
    public static double RotationShortestDistance(double rotation1, double rotation2)
    Parameters
    Type Name Description
    double rotation1
    double rotation2
    Returns
    Type Description
    double
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX