CAIRO_MATRIX_INIT_ROTATE(3) 1 CAIRO_MATRIX_INIT_ROTATE(3)
CairoMatrix::initRotate - Creates a new rotated matrix
Object oriented style (method):
SYNOPSIS
publicstatic void CairoMatrix::initRotate (float $radians)
DESCRIPTION
Procedural style:
object cairo_matrix_init_rotate (float $radians)
Creats a new matrix to a transformation that rotates by radians provided
PARAMETERS
o $radians
- angle of rotation, in radians. The direction of rotation is defined such that positive angles rotate in the direction from the
positive X axis toward the positive Y axis. With the default axis orientation of cairo, positive angles rotate in a clockwise
direction.
RETURN VALUES
Returns a new CairoMatrix object that can be used with surfaces, contexts, and patterns.
EXAMPLES
Example #1
Object oriented style
<?php
/* Create a new Matrix */
$matrix = CairoMatrix::initRotate(0.3);
?>
Example #2
Procedural style
<?php
/* Create a new Matrix */
$matrix = cairo_matrix_init_rotate(0.3);
?>
SEE ALSO
CairoMatrix::__construct, CairoMatrix::initIdentity, CairoMatrix::initScale, CairoMatrix::initTranslate.
PHP Documentation Group CAIRO_MATRIX_INIT_ROTATE(3)