Examples of X()


Examples of com.github.davidmoten.rtree.geometry.Point.x()

                point(57.0, 36.0), point(14.0, 37.0) };

        RTree<Integer, Geometry> tree = RTree.create();
        for (int i = 0; i < points.length; i++) {
            Point point = points[i];
            System.out.println("point(" + point.x() + "," + point.y() + "), value=" + (i + 1));
            tree = tree.add(i + 1, point);
        }
        System.out.println(tree.asString());
        System.out.println("searching " + r);
        Set<Integer> set = new HashSet<Integer>(tree.search(r).map(RTreeTest.<Integer> toValue())
View Full Code Here

Examples of com.googlecode.javacv.cpp.opencv_core.CvRect.x()

                if (faces!=null) {
                    // We iterate over the discovered faces and draw yellow rectangles 
                    // around them.
                    for (int i = 0; i < faces.total(); i++) {
                        CvRect r = new CvRect(cvGetSeqElem(faces, i));
                        cvRectangle(frame, cvPoint(r.x(), r.y()),
                                cvPoint(r.x() + r.width(), r.y() + r.height()),
                                CvScalar.YELLOW, 1, CV_AA, 0);
                       
                    }
                }
View Full Code Here

Examples of com.pointcliki.grid.GridCoordinate.x()

        // Get perpendicular and parallel distance
        int u;  // Perpendicular
        int v;  // Parallel
        if (Math.abs(lineDir.x()) == 1) {
          u = Math.abs(dist.y());
          v = Math.abs(dist.x());
        } else {
          u = Math.abs(dist.x());
          v = Math.abs(dist.y());
        }
        ArrayList<GridCoordinate> segment = new ArrayList<GridCoordinate>();
View Full Code Here

Examples of com.trolltech.qt.core.QPointF.x()

 
  @Override
  public void mouseMoveEvent(QGraphicsSceneMouseEvent event) {
    QPointF mousePos = event.scenePos();
    if (device != null) {
      Tile tile = getTile(mousePos.x(), mousePos.y());
      if(tile != null){
        String tileName = device.getPartName() + " | " +  tile.getName() +
        " | " + tile.getType() + " (" + currX + "," + currY + ")";
        this.updateStatus.emit(tileName, tile);
        prevX = currX;
View Full Code Here

Examples of extrabiomes.lib.Vector3.x()

        Vector3 currentBlock;

        while (killList.size() > 0)
        {
            currentBlock = killList.remove();
            Block block = player.worldObj.getBlock(currentBlock.x(), currentBlock.y(), currentBlock.z());
            int damage = player.worldObj.getBlockMetadata(currentBlock.x(), currentBlock.y(), currentBlock.z());
            String blockType = OreDictionary.getOreName(OreDictionary.getOreID(new ItemStack(block, 1, damage)));

            // shorten the coords
            int x1 = currentBlock.x();
View Full Code Here

Examples of fm.ak.otse.twod.Sprite.x()

            }
           
            float TW = Tile.sheet.getTexture().getTextureWidth();
            float TH = Tile.sheet.getTexture().getTextureHeight();
           
            float tx = (float) sprite.x() / TW;
            float ty = (float) sprite.y() / TH;
            float tw = ((float) 40 / TW) + tx;
            float th = ((float) 40 / TH) + ty;
           
            glBegin(GL_QUADS);
View Full Code Here

Examples of general.datastructures.Vector2f.x()

*/

  @Test
  public void testVector2f() {
    Vector2f vec1 = new Vector2f(5, 7);
    assertEquals(5,vec1.x(),0.0001);
    assertEquals(7,vec1.y(),0.0001);
   
    Vector2f vec2 = new Vector2f(5);
    assertTrue(vec1.isInRange(vec2, 2.0001f));
    assertFalse(vec1.isInRange(vec2, 1.9999f));
View Full Code Here

Examples of gls.ch06.s05.testClasses.Tt1cgi.x()

            }
        };

        assertTrue(((Closure) obj.getProperty("x")).call() == obj.getX().call());
        assertTrue(((Closure) obj.getMetaClass().getAttribute(obj, "x")).call() == obj.x.call());
        assertTrue(obj.invokeMethod("x", new Object[]{}) == obj.x());

        obj.setProperty("x", newX);
        obj.getMetaClass().setAttribute(obj, "x", newX1);

        assertTrue(((Closure) obj.getProperty("x")).call() == newX.call());
View Full Code Here

Examples of gls.ch06.s05.testClasses.Tt1cgo.x()

            }
        };

        assertTrue(((Closure) obj.getProperty("x")).call() == obj.getX().call());
        assertTrue(((Closure) obj.getMetaClass().getAttribute(obj, "x")).call() == obj.x.call());
        assertTrue(obj.invokeMethod("x", new Object[]{}) == obj.x());

        obj.setProperty("x", newX);
        obj.getMetaClass().setAttribute(obj, "x", newX1);

        assertTrue(((Closure) obj.getProperty("x")).call() == newX.call());
View Full Code Here

Examples of gls.ch06.s05.testClasses.Tt1go.x()

        final String newX2 = "new x2";
        final String newX3 = "new x3";

        assertTrue(obj.getProperty("x") == obj.getX());
        assertTrue(obj.getMetaClass().getAttribute(obj, "x") == obj.x);
        assertTrue(obj.invokeMethod("x", new Object[]{}) == obj.x());

        obj.setProperty("x", newX);
        obj.getMetaClass().setAttribute(obj, "x", newX1);

        assertTrue(obj.getProperty("x") == newX);
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.