Examples of asReal()


Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDReal.asReal()

    tempReal = (OSDReal)array.get(1);
    Assert.assertEquals(4.0d, tempReal.asReal(), 0);

    Assert.assertEquals(OSDType.Real, array.get(2).getType());
    tempReal = (OSDReal)array.get(2);
    Assert.assertEquals(-13.333d, tempReal.asReal(), 0);

    Assert.assertEquals(OSDType.Real, array.get(3).getType());
    tempReal = (OSDReal)array.get(3);
    Assert.assertEquals(0d, tempReal.asReal(), 0);
  }
View Full Code Here

Examples of com.ngt.jopenmetaverse.shared.structureddata.OSDReal.asReal()

    tempReal = (OSDReal)array.get(2);
    Assert.assertEquals(-13.333d, tempReal.asReal(), 0);

    Assert.assertEquals(OSDType.Real, array.get(3).getType());
    tempReal = (OSDReal)array.get(3);
    Assert.assertEquals(0d, tempReal.asReal(), 0);
  }

  /// <summary>
  /// Test that various String representations are parsed correctly.
  /// </summary>
View Full Code Here

Examples of org.renjin.sexp.SEXP.asReal()

    if(sigargs == Symbol.UNBOUND_VALUE || siglength == Symbol.UNBOUND_VALUE ||
        mtable == Symbol.UNBOUND_VALUE) {       
      throw new EvalException("Generic \"%s\" seems not to have been initialized for table dispatch---need to have .SigArgs and .AllMtable assigned in its environment",
          fname.asString());
    }
    int nargs =  (int)siglength.asReal();
    ListVector.Builder classListBuilder = ListVector.newBuilder();
    StringVector thisClass;
    StringBuilder buf = new StringBuilder();
   
    for(int i = 0; i < nargs; i++) {
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.