a simple Java-FX Application which Simulate the Approximation of Pi https://nextn.xyz
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
362 B

  1. package montecarlopi;
  2. public class Point {
  3. private double x,y;
  4. public Point(double x, double y) {
  5. this.x = x;
  6. this.y = y;
  7. }
  8. public double getX() {
  9. return x;
  10. }
  11. public double getY() {
  12. return y;
  13. }
  14. @Override
  15. public String toString() {
  16. return "("+x+"\\"+y+")";
  17. }
  18. }