Cairo.Matrix.Rotate C# (CSharp) Метод

Rotate() публичный Метод

public Rotate ( double radians ) : void
radians double
Результат void
        public void Rotate(double radians)
        {
            NativeMethods.cairo_matrix_rotate (this, radians);
        }

Usage Example

Пример #1
0
        public static Matrix GetTransform(this Node node)
        {
            double anchorX = node.AnchorX * node.Width;
            double anchorY = node.AnchorY * node.Height;

            Matrix transform = new Matrix ();
            transform.Translate (node.X + anchorX, node.Y + anchorY);
            transform.Rotate (node.Rotation);
            transform.Scale (node.Scale, node.Scale);
            transform.Translate (-anchorX, -anchorY);

            return transform;
        }
All Usage Examples Of Cairo.Matrix::Rotate