Examples of calcPos()


Examples of org.osm2world.core.map_data.creation.MapProjection.calcPos()

       
        LatLonEle pos = args.getPviewPos();
        LatLonEle lookAt = args.getPviewLookat();
       
        camera = new Camera();
        VectorXYZ posV = proj.calcPos(pos.lat, pos.lon).xyz(pos.ele);
        VectorXYZ laV =  proj.calcPos(lookAt.lat, lookAt.lon).xyz(lookAt.ele);
        camera.setCamera(posV.x, posV.y, posV.z, laV.x, laV.y, laV.z);
       
        projection = new Projection(false,
            args.isPviewAspect() ? args.getPviewAspect() :
View Full Code Here

Examples of org.osm2world.core.map_data.creation.MapProjection.calcPos()

        LatLonEle pos = args.getPviewPos();
        LatLonEle lookAt = args.getPviewLookat();
       
        camera = new Camera();
        VectorXYZ posV = proj.calcPos(pos.lat, pos.lon).xyz(pos.ele);
        VectorXYZ laV =  proj.calcPos(lookAt.lat, lookAt.lon).xyz(lookAt.ele);
        camera.setCamera(posV.x, posV.y, posV.z, laV.x, laV.y, laV.z);
       
        projection = new Projection(false,
            args.isPviewAspect() ? args.getPviewAspect() :
              (double)args.getResolution().x / args.getResolution().y,
View Full Code Here

Examples of org.osm2world.core.map_data.creation.MapProjection.calcPos()

    double height = Double.parseDouble(
        JOptionPane.showInputDialog(viewerFrame, "height"));
   
    MapProjection projection = data.getConversionResults().getMapProjection();

    VectorXZ newPosXZ = projection.calcPos(lat, lon);
    VectorXYZ newPos = newPosXZ.xyz(height);
   
    renderOptions.camera.move(newPos.subtract(renderOptions.camera.getPos()));
   
  }
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.