Query: cairo_matrix_init_rotate
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
CAIRO_MATRIX_INIT_ROTATE(3) 1 CAIRO_MATRIX_INIT_ROTATE(3) CairoMatrix::initRotate - Creates a new rotated matrix Object oriented style (method):SYNOPSISpublicstatic void CairoMatrix::initRotate (float $radians)DESCRIPTIONProcedural style: object cairo_matrix_init_rotate (float $radians) Creats a new matrix to a transformation that rotates by radians providedPARAMETERSo $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 VALUESReturns a new CairoMatrix object that can be used with surfaces, contexts, and patterns.EXAMPLESExample #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 ALSOCairoMatrix::__construct, CairoMatrix::initIdentity, CairoMatrix::initScale, CairoMatrix::initTranslate. PHP Documentation Group CAIRO_MATRIX_INIT_ROTATE(3)