[cairo] cairo_matrix_transform_point, only X or Y

Behdad Esfahbod behdad at behdad.org
Thu Aug 10 07:32:05 PDT 2006


On Tue, 2006-08-08 at 21:00 -0400, Gustavo J. A. M. Carneiro wrote:
> On Ter, 2006-08-08 at 17:25 -0700, Bill Spitzak wrote:
> > If Cairo is doing rotations, the output x depends on both the x and y.
> 
>   True.  But if you know for sure there is no rotation involved, then
> either X or Y is insignificant.
> 
>   There are two items that may be considered waste of cpu time:

When designing a library, you've got to admit that some of the functions
will do waste CPU time, or you end up exposing more and more functions
and suffer from combinatorial explosion.  The point, as has been already
raised in this thread, is whether those wastes are worth fixing or not.
And in the case of the transform functions, remember that you can always
implement them yourself.

-- 
behdad
http://behdad.org/

"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
        -- Dan Bern, "New American Language"



More information about the cairo mailing list