Examples of y()


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

        GridCoordinate dist = path.get(j).subtract(path.get(i));
        // 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());
        }
View Full Code Here

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

 
  @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.y()

        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.y()

           
            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.y()

  @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));
    assertEquals(Math.sqrt(50), vec2.length(), 0.0001);   
View Full Code Here

Examples of hype.core.interfaces.HDirectable.y()

    for(int i=0; i<numTargets; ++i) {
      HDirectable target = it.next();
     
      float rot = target.rotationRad();
      float tx = target.x();
      float ty = target.y();
     
      float goalx = _idleGoalX;
      float goaly = _idleGoalY;
      float goalz = 0;
      HLocatable goal = getGoal(target, app);
View Full Code Here

Examples of hype.core.interfaces.HLocatable.y()

      float goaly = _idleGoalY;
      float goalz = 0;
      HLocatable goal = getGoal(target, app);
      if(goal != null) {
        goalx = goal.x();
        goaly = goal.y();
        goalz = goal.z();
      }
     
      // Get rotation that points towards the goal, plus easing
      float tmp = HMath.xAxisAngle(tx,ty, goalx,goaly) - rot;
View Full Code Here

Examples of jmt.engine.graphic.Vector4.y()

  public boolean isCoplanar(HullFace face) {
    Vector4 diff = this.normal.clone();
    diff.subSelf(face.normal);
    if (Math.abs(diff.x()) > COPLANAR_EPSILON
        || Math.abs(diff.y()) > COPLANAR_EPSILON
        || Math.abs(diff.z()) > COPLANAR_EPSILON) {
      return false;
    } else {
      return true;
    }
View Full Code Here

Examples of jmt.engine.jaba.convexHull3d.HullVertex.y()

        if (hullEdgesSet.add(e)) {
        }
      }
      for (int j = 0; j < vertices.length; j++) {
        HullVertex v = vertices[j];
        Vector4 worldPos = Vector4.createPoint3D(v.x(), v.y(), v.z());
        Vector4 screenPos = prj.project(worldPos);
        PointData p = new PointData(worldPos, screenPos, v);
        if (isVisible) {
          visibleVerticesSet.add(p);
View Full Code Here

Examples of net.hearthstats.util.Coordinate.y()

    }

    for (Pixel pixel : screen.primary) {
      Coordinate coordinate = pixelMap.get(pixel.pixelLocation);
      int x = coordinate.x();
      int y = coordinate.y();

      int rgb = image.getRGB(x, y);
      int red = (rgb >> 16) & 0xFF;
      int green = (rgb >> 8) & 0xFF;
      int blue = (rgb & 0xFF);
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.