Back to project page ConnectedSpace.
The source code is released under:
Copyright (c) 2015, Shreyas Raman <skraman1999@gmail.com>.
If you think the Android project ConnectedSpace listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package me.shreyasr.connected.util; public class MathHelper { public static boolean intersects(double cx, double cy, double r, double ax, double ay, double bx, double by) { return Math.sqrt((ax-cx)*(ax-cx) + (ay-cy)*(ay-cy)) < r || Math.sqrt((bx-cx)*(bx-cx) + (by-cy)*(by-cy)) < r; } }