The build-in routines start with a line from a currentpoint, if there is one. This is annoying. Consider an annulus: thererCOs a line between the inner and outer circles, avoiding which requires a manual moveto. `ArcPrecise` and `ArcPreciseN` prevent this annoyance by starting, always, with a moveto, never a lineto.I think this is an error. What if the user wants a rounded rectangle. That isnrCOt possible if `ArcPrecise` starts with a `moveto`. Perhaps there could be an extra parameter, code, usually being one of {moveto}, {lineto}, {pop pop}. Advice welcomed.
The build-in routines start with a line from a currentpoint, if there is one. This is annoying. Consider an annulus: thererCOs a line between the inner and outer circles, avoiding which requires a manual moveto. `ArcPrecise` and `ArcPreciseN` prevent this annoyance by starting, always, with a moveto, never a lineto.
I think this is an error. What if the user wants a rounded rectangle. That isnrCOt possible if `ArcPrecise` starts with a `moveto`. Perhaps there could be an extra parameter, code, usually being one of {moveto}, {lineto}, {pop pop}. Advice welcomed.
The build-in routines start with a line from a currentpoint, if there is one. This is annoying. Consider an annulus: thererCOs a line between the inner and outer circles, avoiding which requires a manual moveto. `ArcPrecise` and `ArcPreciseN` prevent this annoyance by starting, always, with a moveto, never a lineto.
I think this is an error. What if the user wants a rounded rectangle. That isnrCOt possible if `ArcPrecise` starts with a `moveto`. Perhaps there could be an extra parameter, code, usually being one of {moveto}, {lineto}, {pop pop}. Advice welcomed.
so programmers have no surprises when they use ArcPrecise.Good desideratum.
Advice: 'ArcPrecise' should have the same API as 'arc'.Good desideratum. And
On 7/20/22 11:25, jdaw1 wrote:I lean towards endorsing this view, but I don't hold the opinion very strongly. Having a drop-in replacement is very useful. Having a considered and improved behavior based on the common use cases is very useful. I'm not sure how
The build-in routines start with a line from a currentpoint, if there is one. This is annoying. Consider an annulus: thererCOs a line between the inner and outer circles, avoiding which requires a manual moveto. `ArcPrecise` and `ArcPreciseN` prevent this annoyance by starting, always, with a moveto, never a lineto.
I think this is an error. What if the user wants a rounded rectangle. That isnrCOt possible if `ArcPrecise` starts with a `moveto`. Perhaps there could be an extra parameter, code, usually being one of {moveto}, {lineto}, {pop pop}. Advice welcomed.Advice: 'ArcPrecise' should have the same API as 'arc'. Why? When I see
an image that I want to improve by using ArcPrecise instead of arc, then
I want the *option* to interpose a global dictionary which defines 'arc'
as 'ArcPrecise', and have better arcs be the only change to the image.
I might not have access to the innards of the rest of the Postscript code; it might not be possible to use a text editor to change all calls on "arc".
{ lineto } stopped { moveto } if
A speed of Tan[++/4]-+4/3 has the radius precisely correct at the midpointIf ++ = 90-#, then the speed is Tan[22-+-#]-+4/3 =-a(reU2-areA-a1)-+4/3 ree-a0.55228474983, which is only an edge bigger than AdoberCOs fixed value of 0.552.
Is it the best name? Is an error fo 0.37 ppm rCypreciserCO, or merely rCyaccuraterCO? Should it be ArcAccurate?Are you achieving a more accurate result by calculating with greater precision, or by using a better method? Increased precision usually increases accuracy (exception cases aside), but accuracy can often be improved without increasing precision using better approaches or calculation sequence adjustment (typically to maintain improved precision through the calculation especially with limited precision variables). Both "Accurate" and "Precise" would nominally require qualification or quantification (how precise or accurate); ArcImproved could also work.
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 63 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 492946:31:08 |
| Calls: | 840 |
| Files: | 1,300 |
| D/L today: |
5 files (1,241K bytes) |
| Messages: | 260,694 |