---
layout: doc
title: general / rotate_y
---
# rotate_y

### NAME

    rotate_y() - apply a y-axis rotation to a matrix

### SYNOPSIS

    float array rotate_y( float array matrix, float angle );

### DESCRIPTION

    Applies a rotation around the y axis to matrix and returns matrix.  The
    angle is specified in degrees.  The argument must be a 16 element float
    array in the format returned by id_matrix().

    This efun modifies the supplied matrix array in place.  Internally, the
    driver creates a y-axis rotation matrix and multiplies the current matrix
    by that rotation matrix.

### SEE ALSO

    id_matrix(3), rotate_x(3), rotate_z(3), translate(3), scale(3)
