Examples of Point


Examples of fr.soleil.comete.util.Point

    final DataArray dataArray = new DataArray();
    dataList.add(dataArray);

    dataArray.setId(name);

    Point p;
    for (int i = 0; i < listX.length; i++) {
      p = new Point();
      p.x = listX[i];
      p.y = listY[i];
      dataArray.add(p);
    }
  }
View Full Code Here

Examples of geometry.java.Point

    // [{0.9404276009849271,0.4637809707158117}, {0.1343379470719266,0.856418745571239}, {0.41495871815701435,0.787983871063451}, {0.37085043512217486,0.7525604213257733}, {0.09576133429466949,0.8725551197532135}]
    @Test
    public void testDivideAndConquer() {
        List<Point> points = new ArrayList<>();
        for (int i = 0; i < 100; i++) {
            points.add(new Point(Math.random(), Math.random()));
        }
        Point[] inputA = points.toArray(new Point[points.size()]);
        Arrays.sort(inputA, Point.COMPARE_X);
        Point[] inputB = Arrays.copyOf(inputA, inputA.length);
       
View Full Code Here

Examples of gistoolkit.features.Point

        setEasting(400000);
        setNorthing(100000);
    }
       
    public Object[] degreeToSquare(double lat, double lon) {
        Point tempPoint = new Point(lon, lat);
        projectForward(tempPoint);
        int easting = (int) (tempPoint.getX() + 0.5);
        int northing = (int) (tempPoint.getY() + 0.5);
        int posx = easting / 500000;
        int posy = northing / 500000;
        String gridSquares = "VWXYZQRSTULMNOPFGHJKABCDE";
        StringBuffer returnSquare = new StringBuffer();
       
View Full Code Here

Examples of globalscreen.application.tracability.tracer.Point

            }
            if (value <= minAlarm) {
                state = Point.STATE_LOW;
            }

            pointEvent = new Point(attributeName + "_" + i, arg0.getTimeStamp(), value, state);
            // System.out.println("spectrumChange=" + attributeName + "_" + i);
            listener.newPointChanged(pointEvent);
        }
    }
View Full Code Here

Examples of go.Point

            return false;
        }
        StringBuilder pointList = new StringBuilder(128);
        for (Object move : moves) {
            GoMove pos = (GoMove) move;
            Point point = new Point(pos.getToCol(), pos.getToRow());
            if (pointList.length() > 0)
                pointList.append(' ');
            pointList.append(point);
        }
        response.append(pointList);
View Full Code Here

Examples of gps.garmin.img.structure.data.Point

        seek(treFatBlock.getSubfileOffset() + treHeader.getPointOverviewSectionOffset());
        int numberOfPoints =
            treHeader.getPointOverviewSectionLength() /
            treHeader.getPointOverviewRecordsSize();
        for (int i = 0; i < numberOfPoints; i++) {
            Point point = new Point();
            point.setNumber(i + 1);

            // Point type
            nextByte()// fixme, siempre es por default? no se usa el byte?
            point.setType(PointType.DEFAULT);

            // Maximum level
            point.setMaximumLevelWherePresent(nextByte());

            // Point subtype
            nextByte()// fixme, siempre es por default? no se usa el byte?
            point.setSubtype(PointSubtype.DEFAULT);

            subfile.getPoints().add(point);
        }
       
        img.getSubfiles().add(subfile);
View Full Code Here

Examples of graphics.common.Point

        g.getTransform().translate( mMoved.getRealX(), mMoved.getRealY() );
    }

    @Override
    public void reverse() {
        Point temp = mOrigin;
        mOrigin = mDest;
        mDest = temp;
        temp = null;
    }
View Full Code Here

Examples of iryrwarosh.Point

   
    return previous;
  }

  private void fireball() {
    Point dir = player.lastMovedDirection();
    world.add(new Projectile("fireball", player, 7, Tile.LAVA1.color(), 5, player.position.plus(dir.x, dir.y), dir));
    world.add(new Projectile("fireball", player, 250, Tile.LAVA2.color(), 2, player.position.copy(), dir));
    player.loseRupees(world, 10);
  }
View Full Code Here

Examples of java.awt.Point

            && Settings.propProgramTableMouseAutoScroll.getBoolean()
            && (System.currentTimeMillis() - mLastDragTime < 20)) {
          if (Math.abs(mLastDragDeltaX) >= 3 || Math.abs(mLastDragDeltaY) >= 3) {
            // stop last scroll, if it is still active
            stopAutoScroll();
            startAutoScroll(new Point(mLastDragDeltaX, mLastDragDeltaY), 2);
          }
        }

        // disable dragging
        mDraggingPoint = null;
View Full Code Here

Examples of jimm.datavision.Point

public class NewImageFieldCommand extends InsertFieldCommand {

protected String imageURL;

public NewImageFieldCommand(SectionWidget sw, String url) {
    super(sw, "image", new Point(0, 0));
    imageURL = url;
}
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.