>  Docs Center  >  Libraries  >  Daithi  >  CIRCLE
Libraries

CIRCLE

CIRCLE

Name


CIRCLE

Purpose


This function returns the x- and y- coordinates of a circle.

Category


Graphics

Calling Sequence


Result = CIRCLE( Xcentre, Ycentre, $
Radius, $
Npoints )

Inputs


Xcentre: The x-coordinate of the circle's centre, of type
floating point.
Ycentre: The y-coordinate of the circle's centre, of type
floating point.
Radius: The radius of the circle, of type floating point.

Optional Inputs


Npoints: The number of points to be defined on the circle,
of type integer. The default is 100.

Keyword Parameters


OVERLAP: If set, the "ends" of the circle overlap. This produces
better results if plotting the circles with thick lines.

Outputs


Result: Returns the x- and y- coordinates of the circle in
a 2*Npoints array.

Procedure


This function calculates Npoints evenly-spaced points along a
circle.

Example


Define a circle of unit radius centred on the origin.
result = circle( 0, 0, 5 )

Modification History


  Written by: Edward C. Wiebe, 1997-12-10.
Modified by: Daithi A. Stone (stoned@atm.ox.ac.uk), 2000-07-05
(added Npoints optional input).
Modified by: DAS, 2004-11-26 (added OVERLAP keyword)



© 2024 NV5 Geospatial Solutions, Inc. |  Legal
My Account    |    Contact Us