Documentation

GraphicsState
in package

A simple graphic state class which holds the current transformation matrix.

Table of Contents

Properties

$ctm  : Matrix

Methods

__construct()  : mixed
add()  : $this
rotate()  : $this
scale()  : $this
toUserSpace()  : Vector
translate()  : $this

Properties

Methods

rotate()

public rotate(int|float $x, int|float $y, int|float $angle) : $this
Parameters
$x : int|float
$y : int|float
$angle : int|float
Return values
$this

scale()

public scale(int|float $scaleX, int|float $scaleY) : $this
Parameters
$scaleX : int|float
$scaleY : int|float
Return values
$this

translate()

public translate(int|float $shiftX, int|float $shiftY) : $this
Parameters
$shiftX : int|float
$shiftY : int|float
Return values
$this

        
On this page

Search results