summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/us/minak/MetaCircle.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/us/minak/MetaCircle.java b/src/us/minak/MetaCircle.java
index 9023671..908842a 100644
--- a/src/us/minak/MetaCircle.java
+++ b/src/us/minak/MetaCircle.java
@@ -1,7 +1,5 @@
package us.minak;
-import android.graphics.Color;
-
/*
* Not sure if this should be drawable or what.
*
@@ -24,4 +22,8 @@ public class MetaCircle {
this.expanded = false;
this.expansion = 0;
}
+
+ public boolean containsPoint(float x, float y) {
+ return Math.pow(x - this.x, 2) + Math.pow(y - this.y, 2) < Math.pow(this.radius, 2) ? true : false;
+ }
}