Hello
I can draw a line from a program:
line({0,0},{5,5});
But I cannot find the correct syntax to draw a circle by giving coordinates of the center and the radius. I tried all kind of syntaxes I could imagine with no success. Manual did not help me more.
Help much appreciated.
Kind regards.
HP Prime - Drawing a circle from a program
|
|
« Next Oldest | Next Newest »
|
▼
Post: #3
11-06-2013, 04:41 PM
▼
Post: #4
11-06-2013, 04:52 PM
ARC(G,x,y,r,a1,a2,c) or ARC_P (G,x,y,r,a1,a2,c) Page 538 in Edition 1, July 2013, User Guide. TomC ▼
Post: #5
11-06-2013, 08:46 PM
Note: radius (r) is always in pixels, regardless of whether ARC or ARC_P is used. So if you are using the Cartesian version of ARC, convert the radius first.
X point to pixel: integer((x - Xmin)/(Xmax - Xmin)) * 318 Y point to pixel: integer((y - Ymax)/(Ymin -Ymax)) * 218 Also you can use the C>PX command in the catalog. C>PX(x,y) returns the list {x pixel, y pixel}.
Post: #6
11-07-2013, 02:49 AM
Bonjour Thomas ▼ ▼
Post: #8
11-07-2013, 03:40 PM
Mic
Post: #9
11-07-2013, 09:20 AM
Because "circle" implies that you are drawing a complete circle exclusively. ARC can draw curved arcs between 0<x<2pi angular values. TW |