Examples of surfaceDistanceBetween()


Examples of toxi.geom.Sphere.surfaceDistanceBetween()

    public void testSurfaceDistance() {
        Vec2D p = new Vec2D(90, 60).scale(MathUtils.DEG2RAD);
        Vec2D q = new Vec2D(90, 61).scale(MathUtils.DEG2RAD);
        Sphere e = new Sphere(Sphere.EARTH_RADIUS);
        double dist = (float) e.surfaceDistanceBetween(p, q);
        assertTrue(MathUtils.abs(dist - 111.1952) < 0.1);
    }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.