MapAround.CoordinateSystems.Transformations.Affine.Rotation C# (CSharp) Method

Rotation() public static method

Create a rotation transform.
public static Rotation ( double angle ) : Affine
angle double An angle (in radians) of rotation
return Affine
        public static Affine Rotation(double angle)
        {
            Matrix matrix = new Matrix(
                new double[,]
            {
                { Math.Cos(angle), Math.Sin(angle), 0},
                { -Math.Sin(angle),  Math.Cos(angle), 0},
                { 0, 0, 1},
            });
            return new Affine(matrix);
        }