title: Plot N equidistant points on a circle, only giving one point
body: <p>So I need to plot n equally spaced points along the circumference of a circle. I have the code here but it only plots 1 point. It's probably just one little thing but I can't figure it out. Here's what I have:</p>
  
  <pre><code>import javafx.application.Application;
  import javafx.scene.layout.AnchorPane;
  import javafx.scene.Scene;
  import javafx.scene.paint.Color;
  import javafx.scene.shape.Circle;
  import javafx.stage.Stage;
  import javafx.geometry.Point2D;
  
  public class jvafx extends Application {
      public static void main(String[] args) {
          Application.launch(args);
      }
      @Override
      public void start(Stage primaryStage) {     
          AnchorPane root = new AnchorPane();
          Scene scene = new Scene(root, 300, 300, Color.LIGHTGREY);
  
          Circle c = new Circle();
          c.setCenterX(150.0f);
          c.setCenterY(150.0f);
          c.setRadius(100.0f);
          c.setStroke(Color.BLACK);
          c.setFill(null);
  
          root.getChildren().add(c);
  
          int N = 16;
          Circle pt = null;
          for(int i = 0; i &lt; N; i++) {
              pt = new Circle(150.0f + 100 * Math.cos(Math.PI*2*(i/N)),
                      150.0f + 100 * Math.sin(Math.PI*2*(i/N)), 3.0f);
              pt.setFill(Color.BLACK);
              root.getChildren().add(pt); 
          }
  
          primaryStage.setScene(scene);
          primaryStage.show();
      }
  }
  </code></pre>
  
  <p>I'd assume that the position of the point (circle) should change as i increases. Maybe this is wrong? </p>