// Example program to show how to locate points using
// Trif functions...
void setup() {
size(600, 600);
background(255);
noLoop();
} // setup()
void draw() {
float r = 200;
float theta = 0.0;
int N = 4;
float delta = TWO_PI/N;
pushMatrix();
translate(width/2, height/2);
fill(0);
noStroke();
circle(0, 0, 5);
for (int i=1; i <= N; i++) {
// Draw ith point
float x = r*cos(theta);
float y = r* sin(theta);
fill(255, 0, 125);
circle(x, y, 5);
theta = theta + delta;
}
popMatrix();
} // draw()