← All docs

cairo_matrix_init_rotate()

Creates a matrix that rotates by the given angle in radians.

cairo_matrix_init_rotate()

function cairo_matrix_init_rotate(float $radians): mixed

Creates a matrix that rotates by the given angle in radians.

Parameters:

  • $radians (float)

Returns: mixed

Availability

  • Compiled (AOT): supported through the compiler-injected image prelude.
  • eval() (magician interpreter): not available inside eval’d code.

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how cairo_matrix_init_rotate is implemented in the compiler, see the internals page.