mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-01-23 00:50:16 +01:00
Updated Matrix.Rotate
This commit is contained in:
parent
f86f1d3c28
commit
8124d5714a
|
|
@ -65,10 +65,12 @@ namespace MapControl
|
|||
|
||||
public void Rotate(double angle)
|
||||
{
|
||||
angle = angle % 360d * Math.PI / 180d;
|
||||
|
||||
if (angle != 0d)
|
||||
{
|
||||
var cos = Math.Cos(angle * Math.PI / 180d);
|
||||
var sin = Math.Sin(angle * Math.PI / 180d);
|
||||
var cos = Math.Cos(angle);
|
||||
var sin = Math.Sin(angle);
|
||||
|
||||
// equivalent to Multiply(new Matrix(cos, sin, -sin, cos, 0d, 0d));
|
||||
//
|
||||
|
|
|
|||
Loading…
Reference in a new issue