Examples of Point


Examples of org.gwtopenmaps.openlayers.client.geometry.Point

        lonLat.transform(new Projection("EPSG:4326").getProjectionCode(), map.getProjection());
        return lonLat;
    }

    public Point createPoint(double x, double y) {
        Point point = new Point(x, y);
        point.transform(new Projection("EPSG:4326"), new Projection(map.getProjection()));
        return point;
    }
View Full Code Here

Examples of org.hibernate.search.spatial.impl.Point

      Double longitude = getLongitude( value );

      if ( ( latitude != null ) && ( longitude != null ) ) {

        if ( quadTreeIndex ) {
          Point point = Point.fromDegrees( latitude, longitude );

          for ( int i = topQuadTreeLevel; i <= bottomQuadTreeLevel; i++ ) {
            luceneOptions.addFieldToDocument( SpatialHelper.formatFieldName( i, name ), SpatialHelper.getQuadTreeCellId( point, i ), document );
          }
        }
View Full Code Here

Examples of org.jboss.arquillian.ajocado.geometry.Point

    }

    public void setDropTarget(ElementLocator<?> dropTarget) {
        switch (currentPhase) {
            case INITIAL:
                startMove = new Point(selenium.getElementWidth(itemToDrag) / 2, selenium.getElementHeight(itemToDrag) / 2);
                currentPosition = getCenterOfElement(itemToDrag);
                endPosition = getCenterOfElement(dropTarget);
                overallMove = endPosition.substract(currentPosition);
                return;
            case DROP:
                throw new IllegalStateException("draggable was already dropped");
            case ENTER:
                selenium.mouseOut(this.dropTarget);
                break;
            default:
        }
        if (Phase.MOUSE_OUT.before(currentPhase)) {
            currentPhase = Phase.MOUSE_OUT;
        }
        endPosition = getCenterOfElement(dropTarget);
        overallMove = endPosition.substract(currentPosition);
        reposition = currentDelta.substract(startMove);
        movement = new Point(0, 0);
        this.dropTarget = dropTarget;
    }
View Full Code Here

Examples of org.jemmy.Point

     *
     * @return
     */
    @Property(CLICKPOINT_PROP_NAME)
    public Point getClickPoint() {
        return new Point(getScreenBounds().width / 2, (getScreenBounds().height / 2));
    }
View Full Code Here

Examples of org.jgroups.demo.tankwar.model.Point

    Point[] tmp = new Point[75];
    Point[] tmpArray = new Point[150];
    Point[] array = new Point[300];
   
    for(int i = 0 ; i < 75 ; i ++){
      Point p = new Point(350 + i, 300 - i);
      tmp[i] = p;
      tmpArray[i] = p;
    }
   
    for(int i = 75 ; i > 0 ; i --) {
View Full Code Here

Examples of org.jwildfire.create.eden.primitive.Point

      }
    }
  }

  private void writeTransform(StringBuffer pSB, Primitive pPrimitive) {
    Point position = pPrimitive.getPosition();
    Point rotate = pPrimitive.getRotate();
    Point size = pPrimitive.getSize();
    if (Math.abs(position.getX()) > MathLib.EPSILON || Math.abs(position.getY()) > MathLib.EPSILON || Math.abs(position.getZ()) > MathLib.EPSILON ||
        Math.abs(rotate.getX()) > MathLib.EPSILON || Math.abs(rotate.getY()) > MathLib.EPSILON || Math.abs(rotate.getZ()) > MathLib.EPSILON ||
        Math.abs(size.getX() - 1.0) > MathLib.EPSILON || Math.abs(size.getY() - 1.0) > MathLib.EPSILON || Math.abs(size.getZ() - 1.0) > MathLib.EPSILON) {
      pSB.append("  transform {\n");
      if (Math.abs(rotate.getX()) > MathLib.EPSILON) {
        pSB.append("    rotatex " + pPrimitive.getRotate().getX() + "\n");
      }
      if (Math.abs(rotate.getY()) > MathLib.EPSILON) {
        pSB.append("    rotatez " + (-pPrimitive.getRotate().getY()) + "\n");
      }
      if (Math.abs(rotate.getZ()) > MathLib.EPSILON) {
        pSB.append("    rotatey " + (-pPrimitive.getRotate().getZ()) + "\n");
      }
      if (Math.abs(size.getX() - 1.0) > MathLib.EPSILON || Math.abs(size.getY() - 1.0) > MathLib.EPSILON || Math.abs(size.getZ() - 1.0) > MathLib.EPSILON) {
        pSB.append("    scale " + pPrimitive.getSize().getX() + " " + pPrimitive.getSize().getZ() + " " + pPrimitive.getSize().getY() + "\n");
      }
      if (Math.abs(position.getX()) > MathLib.EPSILON || Math.abs(position.getY()) > MathLib.EPSILON || Math.abs(position.getZ()) > MathLib.EPSILON) {
        pSB.append("    translate " + pPrimitive.getPosition().getX() + " " + pPrimitive.getPosition().getZ() + " " + pPrimitive.getPosition().getY() + "\n");
      }
View Full Code Here

Examples of org.jwildfire.create.tina.meshgen.marchingcubes.Point

            String key = lineTokenizer.nextToken();
            if ("v".equals(key)) {
              String x = lineTokenizer.nextToken();
              String y = lineTokenizer.nextToken();
              String z = lineTokenizer.nextToken();
              Point point = new Point(Float.parseFloat(x), Float.parseFloat(y), Float.parseFloat(z));
              vertices.add(point);
            }
            else if ("vn".equals(key)) {
              String x = lineTokenizer.nextToken();
              String y = lineTokenizer.nextToken();
              String z = lineTokenizer.nextToken();
              Point point = new Point(Float.parseFloat(x), Float.parseFloat(y), Float.parseFloat(z));
              vertexNormals.add(point);
            }
            else if ("f".equals(key)) {
              List<String> pointIdxList = new ArrayList<String>();
              while (lineTokenizer.hasMoreElements()) {
View Full Code Here

Examples of org.kabeja.dxf.helpers.Point

        ParametricPlane plane = new ParametricPlane(this.viewTargetPoint,
                directionX,
                MathUtils.crossProduct(this.viewDirectionVector, directionX),
                this.viewDirectionVector);
        Bounds bounds = new Bounds();
        Point p = plane.getPoint(this.viewCenterPoint.getX() - modelW,
                this.viewCenterPoint.getY() - modelH);
        bounds.addToBounds(p);
        p = plane.getPoint(this.viewCenterPoint.getX() + modelW,
                this.viewCenterPoint.getY() + modelH);
        bounds.addToBounds(p);
View Full Code Here

Examples of org.kalimullin.fsraytracer.geometry.Point

    @Override
    public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
        switch (qName.toLowerCase()) {
            case "point":
                currentPoint = new Point();
                break;
            case "face":
                currentFacePoints = new HashSet<>();
                break;
            case "id":
View Full Code Here

Examples of org.locationtech.udig.tools.edit.support.Point

        if (command == null) {
            ILayer selectedLayer = handler.getEditLayer();
            EditBlackboard editBlackboard = handler.getEditBlackboard(selectedLayer);
           
            Coordinate destinationCoord=null;
            Point dest;
            destinationCoord = calculateDestinationPoint(editBlackboard, destinationCoord);
   
            dest=editBlackboard.toPoint(destinationCoord);
            int deltaX = dest.getX() - lastPoint.getX();
            int deltaY = dest.getY()
                    - lastPoint.getY();
            if( deltaX!=0 || deltaY!=0 ){
                editBlackboard.moveSelection(deltaX, deltaY, toMove);
            }
            editBlackboard.setCoords(dest, destinationCoord);
   
            deltaX = dest.getX() - start.getX();
            deltaY = dest.getY() - start.getY();
   
           
            command=new MoveSelectionCommand(editBlackboard, deltaX, deltaY, toMove );
            command.setMap(getMap());
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.