CIRCLE_POINTS
Write Circle Points to a File


CIRCLE_POINTS is an executable FORTRAN90 program, using double precision arithmetic, which calculates points equally spaced on a circle and writes them to a file.

Usage:

circle_points number r x y angle1 angle2 file
computes number points on a circle of radius r and center (x,y), from angle angle1 (in degrees) to angle2, and writes the results to the file file.

Related Programs:

GEOMETRY is a FORTRAN90 library which contains a number of routines for sampling points on various geometric shapes.

PLOT_POINTS is an executable FORTRAN90 program that can make a plot of the points.

RANDOM_DATA is a library which contains a number of routines for sampling random points in or on various geometric shapes.

Source Code:

Examples and Tests:

ARC is a set of 10 equally spaced points from 0 to 90 degrees.

PENTAGON is a set of 6(!) equally spaced points from 0 to 360 degrees. This is the easiest way to get a pentagon, but you should really edit the file and remove the last point, since it repeats the first one. The alternative is to specify that the angles range from 0 to 288 degrees!

List of Routines:

You can go up one level to the FORTRAN90 source codes.


Last revised on 26 November 2006.