From: Johan E. <jbc...@sw...> - 2013-11-13 17:20:44
|
On 13-11-2013 17:57, Krzysztof Kosiński wrote: > 2013/11/13 Johan Engelen <jbc...@sw...>: >> This is not possible. Because curves are not closed under Affine transform, >> there is no operator*=(Affine). If you want to transform a Curve, you have >> to call >> Curve* Curve::transformed(Affine const&) >> >> I'll clean up the work and commit my changes, so you can see. > Oops, I forgot about HLineSegment / VLineSegment. > > I wonder whether keeping these as separate classes is worth breaking > the assumption that curves are closed under arbitrary affines, not > only translation and scaling. Wow, I didn't realize that it's only the HL and VL curve types. Not being able to transform Curves without creating a new copy is a very high price to pay for HL and VL... What shall we do? I thought Inkscape wants HLineSegment / VLineSegment to be able to fully round-trip SVG-d, but when I manually enter H or V in the XML-editor, it is immediately converted to normal line segments... regards, Johan |