
J.B.C.Engelen@...1578... wrote:
... More like the other way around, NR::Point => Geom::Point (and similarly for Matrix and friends) shouldn't be that hard (they're very, very similar), but I thought I'd first eliminate the old NR structures.
Yes I know, that's why I was wondering why you'd go via NR::Point and not just directly :). I'd like to convert things to 2geom for gsoc this year. Probably you've seen my NR::Point::to_2geom() method and friends?
Definitely, but since I probably won't have a lot of time for the rest of this week I'll post a patch for this change first (as soon as I've double-checked the last few changes). One of the reasons to attack this first was that some things were implemented two, or even three, times in the same set of libnr files alone!
The matrix reversal is a good find though. Did you have a look how 2geom does it?
Yes, it does it in exactly the same way, and so do the optimized matrix multiplications for NR::translate, NR::scale and NR::rotate. I have not checked what Cairo does. (BTW, I just read in njh's mail that there probably indeed was a good reason to do this.)