← All docs

cairo_matrix_transform_point()

Applies a matrix to a point and returns the transformed [x, y] pair.

cairo_matrix_transform_point()

function cairo_matrix_transform_point(mixed $matrix, float $x, float $y): array

Applies a matrix to a point and returns the transformed [x, y] pair.

Parameters:

  • $matrix (mixed)
  • $x (float)
  • $y (float)

Returns: array

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