[metapost] straight lines vs. curves (SVG)
taco at elvenkind.com
Mon Apr 27 09:33:55 CEST 2009
Boguslaw Jackowski wrote:
> this topic was already discussed on here a few years ago,
> but I thought that recalling some remarks would be in place.
> To me, it seems convenient to represent a line segment from A to B as:
> A .. controls A and B .. B
> It is easy to check the property of being a line, no additional
> flags are needed etc. The only problem is with the direction in nodes;
On the C implementation side, it is much easier&faster to check for
a straightness flag in the knot node than to check the control point
locations, so it is almost certain that the executable would not use
the pre- and postcontrol points at all for straight segments.
More information about the metapost