aboutsummaryrefslogtreecommitdiff
path: root/Week4/src/week4
diff options
context:
space:
mode:
authorCamil Staps2015-02-26 16:05:54 +0100
committerCamil Staps2015-02-26 16:05:54 +0100
commitbca99208b92d3f0afff63ecfa665a38ed8673b6d (patch)
tree8723bedd73a97a8fadd5f9f358c16d67574971e8 /Week4/src/week4
parentMerge branch 'master' into camil (diff)
x
Diffstat (limited to 'Week4/src/week4')
-rw-r--r--Week4/src/week4/Punt.java71
1 files changed, 0 insertions, 71 deletions
diff --git a/Week4/src/week4/Punt.java b/Week4/src/week4/Punt.java
deleted file mode 100644
index daaddd6..0000000
--- a/Week4/src/week4/Punt.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/**
- * Een Punt in 2D
- * @author pieter koopman
- */
-
-public class Punt {
- private int x, y;
-
- /**
- * de gewone constructor
- * @param i: x
- * @param j; y
- */
- public Punt(int i, int j) {
- x = i;
- y = j;
- }
-
- /**
- * copy constructor
- * @param p
- */
- public Punt (Punt p) {
- if (p != null) {
- x = p.x;
- y = p.y;
- } else {
- x = y = 0;
- }
- }
-
- /**
- * getter voor x
- * @return x
- */
- public int getX (){
- return x;
- }
-
- /**
- * getter voor y
- * @return y
- */
- public int getY (){
- return y;
- }
-
- /**
- * equals methode vergelijkt x en y
- * @param o
- * @return
- */
- @Override
- public boolean equals(Object o) {
- if (o != null && o instanceof Punt) {
- Punt p = (Punt) o;
- return x == p.x && y == p.y;
- } else {
- return false;
- }
- }
-
- /**
- * Punt naar String conversie
- * @return Strin met waarde van x en y
- */
- @Override
- public String toString () {
- return "(" + x + "," + y + ")";
- }
-}