---
name: "get_y_rotate_matrix"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/get_y_rotate_matrix"
---

# get\_y\_rotate\_matrix(3alleg)

Construct Y axis rotation matrices. Allegro game programming library.

## NAME

get\_y\_rotate\_matrix, get\_y\_rotate\_matrix\_f - Construct Y axis rotation matrices. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**void get\_y\_rotate\_matrix(MATRIX \*m, fixed r);**

**void get\_y\_rotate\_matrix\_f(MATRIX\_f \*m, float r);**

## DESCRIPTION

Construct Y axis rotation matrices, storing them in m. When applied to a  point, these matrices will rotate it about the Y axis by the specified  angle (given in binary, 256 degrees to a circle format).

## SEE ALSO

[**apply\_matrix**(3alleg)](/apply_matrix/3alleg.md), [**get\_rotation\_matrix**(3alleg)](/get_rotation_matrix/3alleg.md), [**get\_x\_rotate\_matrix**(3alleg)](/get_x_rotate_matrix/3alleg.md), [**get\_z\_rotate\_matrix**(3alleg)](/get_z_rotate_matrix/3alleg.md)
