Package de.fhpotsdam.unfolding.geo

Examples of de.fhpotsdam.unfolding.geo.Transformation.transform()


    System.out.printf("\tpoint2 : x = %.9f y = %.9f \n", point2.x, point2.y);

    // from AbstractProjection#project
    Transformation transformation = new Transformation(1.068070779e7f, 0.0f, 3.355443185e7f, 0.0f,
        -1.068070890e7f, 3.355443057e7f);
    PVector point3 = transformation.transform(point2);
    System.out.printf("\tpoint3a : x = %.9f y = %.9f \n", point3.x, point3.y);

    double x = 1.068070779e7 * point2.x + 0.0 * point2.y + 3.355443185e7;
    double y = 0.0 * point2.x + -1.068070890e7 * point2.y + 3.355443057e7;
    System.out.printf("\tpoint3b : x = %.9f y = %.9f \n", x, y);
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.