← All docs

cairo_matrix_multiply()

Returns the product of two transformation matrices.

cairo_matrix_multiply()

function cairo_matrix_multiply(mixed $m1, mixed $m2): mixed

Returns the product of two transformation matrices.

Parameters:

  • $m1 (mixed)
  • $m2 (mixed)

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_multiply is implemented in the compiler, see the internals page.