Cairo
PHP Manual

The CairoMatrix class

(PECL cairo >= 0.1.0)

Introduction

Matrices are used throughout cairo to convert between different coordinate spaces.

Class synopsis

CairoMatrix {
/* Methods */
public __construct ([ float $xx = 1.0 [, float $yx = 0.0 [, float $xy = 0.0 [, float $yy = 1.0 [, float $x0 = 0.0 [, float $y0 = 0.0 ]]]]]] )
public static void initIdentity ( void )
public static void initRotate ( float $radians )
public static void initScale ( float $sx , float $sy )
public static void initTranslate ( float $tx , float $ty )
public void invert ( void )
public static CairoMatrix multiply ( CairoMatrix $matrix1 , CairoMatrix $matrix2 )
public void rotate ( float $radians )
public void scale ( float $sx , float $sy )
public array transformDistance ( float $dx , float $dy )
public array transformPoint ( float $dx , float $dy )
public void translate ( float $tx , float $ty )
}

Table of Contents


Cairo
PHP Manual