# Struct cairo::Matrix [−] [src]

    #[repr(C)]
    pub struct Matrix {
        pub xx: f64,
        pub yx: f64,
        pub xy: f64,
        pub yy: f64,
        pub x0: f64,
        pub y0: f64,
    }

## Fields

`xx: f64` `yx: f64` `xy: f64` `yy: f64` `x0: f64` `y0: f64`

## Trait Implementations

### `impl Debug for Matrix`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>`

Formats the value using the given formatter.

### `impl Copy for Matrix`
[src]

### `impl Clone for Matrix`
[src]

#### `fn clone(&self) -> Matrix`

Returns a copy of the value. Read more

#### `fn clone_from(&mut self, source: &Self)`
1.0.0

Performs copy-assignment from `source`. Read more

### `impl PartialEq<Matrix> for Matrix`
[src]

#### `fn eq(&self, __arg_0: &Matrix) -> bool`

This method tests for `self` and `other` values to be equal, and is used by `==`. Read more

#### `fn ne(&self, __arg_0: &Matrix) -> bool`

This method tests for `!=`.

### `impl MatrixTrait for Matrix`
[src]

#### `fn null() -> Matrix`

#### `fn new(xx: f64, yx: f64, xy: f64, yy: f64, x0: f64, y0: f64) -> Matrix`

#### `fn multiply(left: &Matrix, right: &Matrix) -> Matrix`

#### `fn identity() -> Matrix`

#### `fn init(&mut self, xx: f64, yx: f64, xy: f64, yy: f64, x0: f64, y0: f64)`

#### `fn translate(&mut self, tx: f64, ty: f64)`

#### `fn scale(&mut self, sx: f64, sy: f64)`

#### `fn rotate(&mut self, angle: f64)`

#### `fn invert(&mut self)`

#### `fn try_invert(&self) -> Result<Matrix, Status>`

#### `fn transform_distance(&self, _dx: f64, _dy: f64) -> (f64, f64)`

#### `fn transform_point(&self, _x: f64, _y: f64) -> (f64, f64)`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)