---
name: "FcMatrixRotate"
section: "3"
platform: "linux"
package: "fontconfig"
version: "2:2.18.3-2"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/FcMatrixRotate"
---

# FcMatrixRotate(3)

Rotate a matrix

## NAME

FcMatrixRotate - Rotate a matrix

## SYNOPSIS

**#include \<fontconfig/fontconfig.h\>**

**void FcMatrixRotate (FcMatrix \****matrix***, double** *cos***, double** *sin***);**

## DESCRIPTION

**FcMatrixRotate** rotates *matrix* by the angle who's sine is *sin* and cosine is *cos*.  This is done by multiplying by the matrix:

```
  cos -sin
  sin  cos
```
