Examples of translate()


Examples of universalelectricity.api.vector.Vector3.translate()

            else
            {
              targetPosition = getTargetPosition();
            }

            PacketHandler.sendPacketToClients(ModularForceFieldSystem.PACKET_TILE.getPacket(this, TilePacketType.FXS.ordinal(), (byte) 2, 60, getAbsoluteAnchor().translate(0.5), targetPosition.translate(0.5).writeToNBT(new NBTTagCompound()), true, nbt), worldObj, new Vector3(this), PACKET_DISTANCE);
          }
          else
          {
            PacketHandler.sendPacketToClients(ModularForceFieldSystem.PACKET_TILE.getPacket(this, TilePacketType.FXS.ordinal(), (byte) 1, nbt), worldObj, new Vector3(this), PACKET_DISTANCE);
          }
View Full Code Here

Examples of us.ihmc.graphics3DAdapter.graphics.Graphics3DObject.translate()

      kdArmWeld.set(100.0);
      kpPenOnDesk.set(1000.0);
     
      // Desk
      Graphics3DObject tableLinkGraphics = new Graphics3DObject();
      tableLinkGraphics.translate(TABLE_CENTER_X_OFFSET, TABLE_CENTER_Y_OFFSET, TABLE_HEIGHT - TABLE_THICKNESS/2.0);
      tableLinkGraphics.addCube(TABLE_LENGTH, TABLE_WIDTH, TABLE_THICKNESS, YoAppearance.Brown());
      this.addStaticLinkGraphics(tableLinkGraphics);
     
      // Desk Pendulum
      PinJoint deskPendulumXJoint = new PinJoint("deskPendulumX", new Vector3d(0.0, 0.0, TABLE_HEIGHT), this, Axis.X);
View Full Code Here

Examples of whitewerx.com.trapos.translators.RateTranslator.translate()

    public void translatesValidEURUSDRate() throws Exception {
        String delimitedRate = "R|EURUSD|1.3124";
        Rate expected = new Rate(1.3124, EURUSD);
               
        RateTranslator rateTranslator = new RateTranslator();
        Rate rate = rateTranslator.translate(delimitedRate);
        assertThat(rate, equalTo(expected));
    }
   
    @Test(expected=TranslateException.class)
    public void shouldNotTranslateInvalidEURUSDRate() throws Exception {
View Full Code Here

Examples of whitewerx.com.trapos.translators.TradeTranslator.translate()

        Amount fivePointOneThousand = new Amount(5.1 * 1000, new Currency("EUR"));
        Rate atEURUSDRate = new Rate(1.3124, EURUSD);
        final Trade expected = new Trade(TradeType.BUY, fivePointOneThousand, atEURUSDRate);
       
        TradeTranslator t = new TradeTranslator();
        Trade trade = t.translate(delimitedTrade);
        assertThat(trade, equalTo(expected));
    }

    @Test
    public void translatesATradeMessageWithNoMultiplier() throws Exception {
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.