[metapost] Problem with quartercircle

Pétiard François petiard.francois at free.fr
Thu Feb 16 09:51:05 CET 2006


Taco Hoekwater a écrit le 16/02/2006 09:04 :
> 
> The result of intersectiontimes is an approximation that is
> not always 'spot on' due to accuracy limitations. Just look
> at the screen output of this snippet:
> 
> prologues:=1;
> beginfig(1);
> path qd;
> qd:=quartercircle scaled(5cm);
> z1= qd intersectionpoint ((0,0)--(4cm,4cm));
> z2= point (xpart (qd intersectiontimes ((0,0)--(4cm,4cm)))) of qd;
> show z1;
> show z2;
> endfig;
> end;
> 
> Cheers, Taco

OK, thank you.

F. Pétiard

-- 
petiard.francois at free.fr



More information about the metapost mailing list