nanogui: Thread: Re: GrArc() function doc update [part trois]


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Re: GrArc() function doc update [part trois]
From: Robert Hartley ####@####.####
Date: 29 Nov 2000 22:11:19 -0000
Message-Id: <3A253896.431A8D00@ics.com>

Final word on this Arc thing.

I have found that if the start and end points are described as being within a
distance less than the radius of the arc, it will act funny.

Below I mentioned that changing the value from -25 to -2500 was fine, changing it
to -24 it started to act up.

I am thinking that a patch to the GrArc() code might do a shift left until the
point was described as being beyond the radius of the arc.

I hope this does not cause a problem as most Microwindows apps might not have
screen dimensions approaching a half of the max size of a signed int.

Please correct me if I am mistaken,

-rob

Robert Hartley wrote:

> Changed the value below from -25 to -2500 had no visible change.
>
> So, could someone please correct my understanding if wrong:
>
> Points a & b are used to calculate a vector from the origin of the arc to
> indicate where the arc starts and stops.
>
> Robert Hartley wrote:
>
> >  /* upper left */
> >  GrArc(paintDrawable, gc2,
> >   100, 100,  /* x, y */
> >   25,25,  /* rx, ry */
> >   0, -2500, /* ax, ay */
> >   -25, 0, /* bx, by */
> >   1);   /* type */
> >
> > In the docs, we may want to change it to read "relative to the origin of x,y"
> >
> > What would happen if we were to indicate points [a & b] whose distance from
> > [x,y] did not coincide with the radii [rx, ry], I am not sure, but I have
> > enough now to be able to draw rectangles with rounded corners in NanoX

-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
=  Robert Hartley                 Mail:         201 Broadway        =
=  Central Region Systems Engineer              Cambridge, MA 02139 =
=  Integrated Computer            Email:        ####@####.####    =
=  Solutions, Inc.                Web Site:     www.ics.com         =
=  Tech Support: ####@####.####  Phone:        800-800-4271        =
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Visit the MotifZone (www.motifzone.org) for info on Motif!



[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.