[cairo] cairo_matrix_transform_point, only X or Y

Gustavo J. A. M. Carneiro gjc at inescporto.pt
Sat Aug 5 06:50:40 PDT 2006


  I found myself in a postion where I'd like to convert some code to
transform coordinate systems over to use the cairo matrices APIs.  I
would like to use cairo_matrix_transform_point; however, in many places
I only need to convert either X or Y, not both, and it seems wasteful to
transform a dummy coordinate to throw it away.

  My question requires some knowledge of CPU performance in this case
and I seek advice:

	1- Should I prepare a patch to add cairo_matrix_transform_x and
cairo_matrix_transform_y?

	2- Or is it pointless to optimise here?

  Any thoughts?

  Regards,

-- 
Gustavo J. A. M. Carneiro
<gjc at inescporto.pt> <gustavo at users.sourceforge.net>
The universe is always one step beyond logic



More information about the cairo mailing list