Package org.osm2world.core.math

Examples of org.osm2world.core.math.VectorXZ.xyz()


           
      /* draw poles */
           
      for (VectorXZ cornerOffset : cornerOffsets) {
        VectorXZ polePos = node.getPos().add(cornerOffset.mult(0.8));
        target.drawBox(material, polePos.xyz(getBase().y),
            faceVector, 0.5, 0.08, 0.08);
      }
     
    }
   
View Full Code Here


       
        VectorXZ pos = projection.calcPos(lat, lon);
       
        if (value != SRTMTile.BLANK_VALUE &&
            !Double.isNaN(pos.x) && !Double.isNaN(pos.z)) {
          result.add(pos.xyz(value));
        }
       
      }
    }
       
View Full Code Here

        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

          VectorXZ point = inverseCoord(e.getX(), e.getY());
         
          if (e.getButton() == MouseEvent.BUTTON1) {
            probePos = point;
          } else {
            add(point.xyz(0));
          }
         
          NNDebugPanel.this.repaint(0);
         
        }
View Full Code Here

            VectorXZ nodePos = ((MapNode)e).getPos();
           
            drawArrow(target, NODE_ARROW_COLOR,
                (float) min(1,
                    distance(leafCenter, nodePos) * 0.3),
                leafCenter.xyz(0), nodePos.xyz(0));
           
          } else if (e instanceof MapWaySegment) {
           
            VectorXZ lineStart =
              ((MapWaySegment)e).getStartNode().getPos();
View Full Code Here

           
            float headLength = (float)
                min(1, distance(leafCenter, lineCenter) * 0.3);
            drawArrow(target,
                LINE_ARROW_COLOR, headLength,
                leafCenter.xyz(0), lineCenter.xyz(0));
           
          } else if (e instanceof MapArea) {
           
            VectorXZ areaCenter =
              ((MapArea)e).getOuterPolygon().getCenter();
View Full Code Here

           
            float headLength = (float)
                min(1, distance(leafCenter, areaCenter) * 0.3);
            drawArrow(target,
                AREA_ARROW_COLOR, headLength,
                leafCenter.xyz(0), areaCenter.xyz(0));
         
          }
        }
       
      }
View Full Code Here

            VectorXZ nodePos = ((MapNode)e).getPos();
           
            drawArrow(target, NODE_ARROW_COLOR,
                (float) min(1,
                    distance(leafCenter, nodePos) * 0.3),
                leafCenter.xyz(0), nodePos.xyz(0));
           
          } else if (e instanceof MapWaySegment) {
           
            VectorXZ lineStart =
              ((MapWaySegment)e).getStartNode().getPos();
View Full Code Here

           
            float headLength = (float)
                min(1, distance(leafCenter, lineCenter) * 0.3);
            drawArrow(target,
                LINE_ARROW_COLOR, headLength,
                leafCenter.xyz(0), lineCenter.xyz(0));
           
          } else if (e instanceof MapArea) {
           
            VectorXZ areaCenter =
              ((MapArea)e).getOuterPolygon().getCenter();
View Full Code Here

           
            float headLength = (float)
                min(1, distance(leafCenter, areaCenter) * 0.3);
            drawArrow(target,
                AREA_ARROW_COLOR, headLength,
                leafCenter.xyz(0), areaCenter.xyz(0));
         
          }
        }
       
      }
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.