Examples of MutableFloat


Examples of Hexel.util.MutableFloat

  }

  public int addVertexData(ArrayList<MutableFloat> list, int index, double x, double y,
      double z, double tx, double ty, Color c) {
    while (index+9 >= list.size())
      list.add(new MutableFloat());
    list.get(index+0).val = (float)x;
    list.get(index+1).val = (float)y;
    list.get(index+2).val = (float)z;
    list.get(index+3).val = (float)tx;
    list.get(index+4).val = (float)ty;
View Full Code Here

Examples of Hexel.util.MutableFloat

  }

  public int addVertexData(ArrayList<MutableFloat> list, int index, double x, double y,
      double z, double tx, double ty, Color c) {
    while (index+9 >= list.size())
      list.add(new MutableFloat());
    list.get(index+0).val = (float)x;
    list.get(index+1).val = (float)y;
    list.get(index+2).val = (float)z;
    list.get(index+3).val = (float)tx;
    list.get(index+4).val = (float)ty;
View Full Code Here

Examples of jodd.mutable.MutableFloat

   
    if (value.getClass() == MutableFloat.class) {
      return (MutableFloat) value;
    }

    return new MutableFloat(typeConverter.convert(value));
  }
View Full Code Here

Examples of jodd.mutable.MutableFloat

  public void testConversion() {
    MutableFloatConverter mutableFloatConverter = (MutableFloatConverter) TypeConverterManager.lookup(MutableFloat.class);

    assertNull(mutableFloatConverter.convert(null));

    assertEquals(new MutableFloat(1.73f), mutableFloatConverter.convert(new MutableFloat(1.73f)));
    assertEquals(new MutableFloat(1), mutableFloatConverter.convert(Integer.valueOf(1)));
    assertEquals(new MutableFloat(1.73f), mutableFloatConverter.convert(Double.valueOf(1.73D)));
    assertEquals(new MutableFloat(1.73f), mutableFloatConverter.convert(" 1.73 "));
    assertEquals(new MutableFloat(1.73f), mutableFloatConverter.convert(new BigDecimal("1.73")));

    try {
      mutableFloatConverter.convert("aaaa");
      fail();
    } catch (TypeConversionException ignore) {
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.