Class RotationCalculations
Inheritance
RotationCalculations
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
|
Edit this page
View Source
NormalizeRotation(double)
Declaration
public static double NormalizeRotation(double rotation)
Parameters
Type |
Name |
Description |
double |
rotation |
|
Returns
|
Edit this page
View Source
RotationShortestDistance(double, double)
Declaration
public static double RotationShortestDistance(double rotation1, double rotation2)
Parameters
Returns