Back to project page zmap.
The source code is released under:
GNU Lesser General Public License
If you think the Android project zmap 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 com.zmap.geom; /*from ww w .ja v a 2 s. c o m*/ public class GeometryUtil { public static double distance(IPoint p, IPoint q) { double dx = p.getX() - q.getX(); double dy = p.getY() - q.getY(); double dz = p.getZ() - q.getZ(); return Math.sqrt(dx * dx + dy * dy + dz * dz); } }