---
name: "Pango::Matrix"
section: "3pm"
platform: "linux"
package: "pango-perl"
version: "1.227-20"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Pango::Matrix"
---

# Pango::Matrix(3pm)

wrapper for PangoMatrix

## NAME

Pango::Matrix - wrapper for PangoMatrix

## HIERARCHY

```
  Glib::Boxed
  +----Pango::Matrix
```

## METHODS

### matrix = Pango::Matrix-\>new ($xx=1., $xy=0., $yx=0., $yy=1., $x0=0., $y0=0.)

- •

  `$xx` (double)

- •

  `$xy` (double)

- •

  `$yx` (double)

- •

  `$yy` (double)

- •

  `$x0` (double)

- •

  `$y0` (double)

### $matrix-\>concat ($new\_matrix)

- •

  `$new_matrix` (Pango::Matrix)

### $matrix-\>rotate ($degrees)

- •

  `$degrees` (double)

### $matrix-\>scale ($scale\_x, $scale\_y)

- •

  `$scale_x` (double)

- •

  `$scale_y` (double)

### (dx, dy) = $matrix-\>transform\_distance ($dx, $dy)

- •

  `$dx` (double)

- •

  `$dy` (double)

Since: pango 1.16

### array reference = $matrix-\>transform\_pixel\_rectangle ($rect)

- •

  `$rect` (array reference)

Since: pango 1.16

### (x, y) = $matrix-\>transform\_point ($x, $y)

- •

  `$x` (double)

- •

  `$y` (double)

Since: pango 1.16

### array reference = $matrix-\>transform\_rectangle ($rect)

- •

  `$rect` (array reference)

Since: pango 1.16

### $matrix-\>translate ($tx, $ty)

- •

  `$tx` (double)

- •

  `$ty` (double)

### double = $matrix-\>x0 ($new)

- •

  `$new` (double)

### double = $matrix-\>xx ($new=0)

- •

  `$new` (double)

### double = $matrix-\>xy ($new)

- •

  `$new` (double)

### double = $matrix-\>y0 ($new)

- •

  `$new` (double)

### double = $matrix-\>yx ($new)

- •

  `$new` (double)

### double = $matrix-\>yy ($new)

- •

  `$new` (double)

## SEE ALSO

Pango, Glib::Boxed

## COPYRIGHT

Copyright (C) 2003-2011 by the gtk2-perl team.

This software is licensed under the LGPL.  See Pango for a full notice.
