Examples of xz()


Examples of org.osm2world.core.math.VectorXYZ.xz()

       
        // increase accumulated length after every second vector
       
        if (i > 0 && i % 2 == 0) {
         
          double segmentLength = v.xz().distanceTo(vs.get(i-2).xz());
         
          if (forward) {
            accumulatedLength -= segmentLength;
          } else {
            accumulatedLength += segmentLength;
View Full Code Here

Examples of org.osm2world.core.math.VectorXYZ.xz()

       
        // increase accumulated length after every second vector
       
        if (i > 0 && i % 2 == 0) {
         
          double segmentLength = v.xz().distanceTo(vs.get(i-2).xz());
         
          if (forward) {
            accumulatedLength -= segmentLength;
          } else {
            accumulatedLength += segmentLength;
View Full Code Here

Examples of org.osm2world.core.math.VectorXYZ.xz()

   
    JOptionPane.showMessageDialog(null,
        "posLat = " + mapProjection.calcLat(pos.xz())
        + "\nposLon = " + mapProjection.calcLon(pos.xz())
        + "\nposEle = " + pos.y
        + "\nlookAtLat = " + mapProjection.calcLat(lookAt.xz())
        + "\nlookAtLon = " + mapProjection.calcLon(lookAt.xz())
        + "\nlookAtEle = " + lookAt.y,
        "Current camera configuration", JOptionPane.INFORMATION_MESSAGE);
  }
 
View Full Code Here

Examples of org.osm2world.core.math.VectorXYZ.xz()

    JOptionPane.showMessageDialog(null,
        "posLat = " + mapProjection.calcLat(pos.xz())
        + "\nposLon = " + mapProjection.calcLon(pos.xz())
        + "\nposEle = " + pos.y
        + "\nlookAtLat = " + mapProjection.calcLat(lookAt.xz())
        + "\nlookAtLon = " + mapProjection.calcLon(lookAt.xz())
        + "\nlookAtEle = " + lookAt.y,
        "Current camera configuration", JOptionPane.INFORMATION_MESSAGE);
  }
 
}
View Full Code Here

Examples of org.osm2world.core.math.VectorXYZ.xz()

       
        double lenToEnd = end.distanceToXZ(start);
        double heightDiff = end.y - start.y;

        double stepSize = lenToEnd / INTERPOLATION_STEPS;
        VectorXZ dir = end.xz().subtract(start.xz()).normalize();
       
        List<VectorXYZ> path = new ArrayList<VectorXYZ>();
        for (int x = 0; x <= INTERPOLATION_STEPS; x++) {
          double ratio = x / INTERPOLATION_STEPS;
         
View Full Code Here

Examples of org.osm2world.core.math.VectorXYZ.xz()

      /* draw points */
     
      g.setColor(Color.BLACK);
     
      for (VectorXYZ p : points) {
        draw(g, p.xz());
      }
     
      /* draw click data */
     
      if (probePos != null) {
View Full Code Here

Examples of org.osm2world.core.math.VectorXYZ.xz()

       
        points.add(point);
       
        // check whether undoing works
       
        triangulation2.probe(point.xz());
       
        assertTriangulationsEqual(triangulation, triangulation2);
       
        // insert for real
       
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.