Examples of negate()


Examples of com.jme3.scene.plugins.blender.textures.TexturePixel.negate()

                // reading the current texture's pixel
                pixelReader.read(image, dataLayerIndex, pixel, index);
                index += bytesPerPixel;
                pixel.toRGBA(pixelColor);
                if (negateTexture) {
                    pixel.negate();
                }

                this.blendPixel(resultPixel, materialColor, pixelColor, blenderContext);
                newData.put(dataIndex++, (byte) (resultPixel[0] * 255.0f));
                newData.put(dataIndex++, (byte) (resultPixel[1] * 255.0f));
 
View Full Code Here

Examples of com.wesabe.api.util.money.Money.negate()

    }

    @Test
    public void shouldStillBeZeroWhenNegated() throws Exception {
      Money zeroDollars = new Money(decimal("0.00"), USD);
      assertTrue(zeroDollars.equals(zeroDollars.negate()));
    }

    @Test
    public void shouldBeZeroEurosWhenConverted() throws Exception {
      CurrencyExchangeRateMap exchangeRates = new CurrencyExchangeRateMap();
View Full Code Here

Examples of edu.cmu.cs.fusion.ThreeValue.negate()

    return new FreeVars().addVar(value, FreeVars.BOOL_TYPE);
  }

  public ThreeValue getTruth(FusionEnvironment env, Substitution sub) {
    ThreeValue val = env.getBooleanValue(sub.getSub(value));
    return isPositive ? val : val.negate();
  }

  public boolean isPositive() {
    return isPositive;
  }
View Full Code Here

Examples of erjang.ENumber.negate()

 
  @BIF(name = "-")
  static public ENumber neg(EObject v1) {
    ENumber n1;
    if ((n1 = v1.testNumber()) != null) {
      return n1.negate();
    }
    throw ERT.badarg(v1);
  }

  @BIF(name = "-", type=Type.GUARD)
View Full Code Here

Examples of erjang.ENumber.negate()

  @BIF(name = "-", type=Type.GUARD)
  static public ENumber neg$g(EObject v1) {
    ENumber n1;
    if ((n1 = v1.testNumber()) != null) {
      return n1.negate();
    }
    return null;
  }

  @BIF
View Full Code Here

Examples of java.math.BigDecimal.negate()

    private static final class NegDecimal extends Exec {
        static final NegDecimal INSTANCE = new NegDecimal();

        public XDecimal eval(DynamicContext dynEnv, Item v1, Item v2) throws XQueryException {
            BigDecimal bd1 = asDecimal(v1, dynEnv);
            return XDecimal.valueOf(bd1.negate());
        }
    }
}
View Full Code Here

Examples of java.math.BigDecimal.negate()

                    bigDecimalResult = bigDecimalResult.divide(getBigDecimalMultiplier(), roundingMode);
                }
            }

            if (!status[STATUS_POSITIVE]) {
                bigDecimalResult = bigDecimalResult.negate();
            }
            return bigDecimalResult;
        } else {
            boolean gotDouble = true;
            boolean gotLongMinimum = false;
View Full Code Here

Examples of java.math.BigDecimal.negate()

            // Ok, then, add a small integer, divide by 10 to generate digits
            D = D.add(BigDecimal.valueOf(rnd.nextInt() & 0xF)).divide(BigDecimal.valueOf(10L));
           
            // Plus switch sign every now and then
            if ((i % 3) == 0) {
                D = D.negate();
            }
        }
    }

    /*
 
View Full Code Here

Examples of java.math.BigDecimal.negate()

        jrVO.setAccountCodeAcc02ACC06(vatAccountCodeAcc02);
        jrVO.setAccountCodeACC06(vatAccountCodeAcc02);
        jrVO.setAccountCodeTypeACC06(ApplicationConsts.ACCOUNT_TYPE_ACCOUNT);

        if (docVO.getDocTypeDOC01().equals(ApplicationConsts.SALE_CREDIT_NOTE_DOC_TYPE))
          jrVO.setCreditAmountACC06(totalVat.negate());
        else
          jrVO.setCreditAmountACC06(totalVat);
        jrVO.setCreditAmountACC06(CurrencyConversionUtils.convertCurrencyToCurrency(jrVO.getCreditAmountACC06(),conv));

        jrVO.setDescriptionACC06("");
View Full Code Here

Examples of java.math.BigDecimal.negate()

         jrVO.setAccountCodeAcc02ACC06(vatAccountCodeAcc02);
         jrVO.setAccountCodeACC06(vatAccountCodeAcc02);
         jrVO.setAccountCodeTypeACC06(ApplicationConsts.ACCOUNT_TYPE_ACCOUNT);

         if (docVO.getDocTypeDOC06().equals(ApplicationConsts.PURCHASE_DEBIT_NOTE_DOC_TYPE))
           jrVO.setDebitAmountACC06(totalVat.negate());
         else
           jrVO.setDebitAmountACC06(totalVat);
         jrVO.setDebitAmountACC06(CurrencyConversionUtils.convertCurrencyToCurrency(jrVO.getDebitAmountACC06(),conv));

         jrVO.setDescriptionACC06("");
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.