Back to project page Spidermine.
The source code is released under:
Copyright ? 2014 PEMapModder This software is open-source and everyone is welcome to share redistributions or modifications, as long as it is clearly specified that this project's original source is ...
If you think the Android project Spidermine 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 pemapmodder.old_spidermine.utils.math; /*from w w w . j a va 2 s .c o m*/ public class Position extends PCoord{ protected double y; public Position(double x, double y, double z){ super(x,z); this.y=y; } public double getX(){ return x; } public double getY(){ return y; } public double getZ(){ return z; } public double dist(Position other){ return Math.sqrt(Math.pow(x-other.getX(), 2) + Math.pow(y-other.getY(), 2) + Math.pow(z-other.getZ(), 2)); // +/- ^ 2 > 0 *absolute* } }