Examples of asReal()


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

    tempReal = (OSDReal)array.get(1);
    Assert.assertEquals(Double.NaN, tempReal.asReal(), 0);

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

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

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

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

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

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

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

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

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

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

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

    Assert.assertNotNull(tempSD);
    Assert.assertTrue(tempSD instanceof OSDReal);
    Assert.assertTrue(tempSD.getType() == OSDType.Real);
    tempReal = (OSDReal)tempSD;

    Assert.assertEquals(0.9878624d, tempReal.asReal(), 0);
    //TODO - figure out any relevant rounding variability for 64 bit reals
    tempSD = map.get("sim fps");
    Assert.assertNotNull(tempSD);
    Assert.assertTrue(tempSD instanceof OSDReal);
    Assert.assertTrue(tempSD.getType() == OSDType.Real);
View Full Code Here

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

    tempSD = map.get("sim fps");
    Assert.assertNotNull(tempSD);
    Assert.assertTrue(tempSD instanceof OSDReal);
    Assert.assertTrue(tempSD.getType() == OSDType.Real);
    tempReal = (OSDReal)tempSD;
    Assert.assertEquals(44.38898d, tempReal.asReal(), 0);

//    tempSD = map.get("agent updates per second");
//    Assert.assertNotNull(tempSD);
//    Assert.assertTrue(tempSD instanceof OSDReal);
//    Assert.assertTrue(tempSD.getType() == OSDType.Real);
View Full Code Here

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

    tempSD = map.get("total task count");
    Assert.assertNotNull(tempSD);
    Assert.assertTrue(tempSD instanceof OSDReal);
    Assert.assertTrue(tempSD.getType() == OSDType.Real);
    tempReal = (OSDReal)tempSD;
    Assert.assertEquals(4.0d, tempReal.asReal(), 0);

    tempSD = map.get("active task count");
    Assert.assertNotNull(tempSD);
    Assert.assertTrue(tempSD instanceof OSDReal);
    Assert.assertTrue(tempSD.getType() == OSDType.Real);
View Full Code Here

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

    tempSD = map.get("active task count");
    Assert.assertNotNull(tempSD);
    Assert.assertTrue(tempSD instanceof OSDReal);
    Assert.assertTrue(tempSD.getType() == OSDType.Real);
    tempReal = (OSDReal)tempSD;
    Assert.assertEquals(0.0d, tempReal.asReal(), 0);

    tempSD = map.get("pending uploads");
    Assert.assertNotNull(tempSD);
    Assert.assertTrue(tempSD instanceof OSDReal);
    Assert.assertTrue(tempSD.getType() == OSDType.Real);
View Full Code Here

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

    tempSD = map.get("pending uploads");
    Assert.assertNotNull(tempSD);
    Assert.assertTrue(tempSD instanceof OSDReal);
    Assert.assertTrue(tempSD.getType() == OSDType.Real);
    tempReal = (OSDReal)tempSD;
    Assert.assertEquals(0.0001096525d, tempReal.asReal(), 0);

  }

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

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

    Assert.assertTrue(theSD instanceof OSDArray);
    array = (OSDArray)theSD;

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

//    Assert.assertEquals(OSDType.Real, array.get(1).getType());
//    tempReal = (OSDReal)array.get(1);
//    Assert.assertEquals(Double.NaN, tempReal.asReal(), 0);
View Full Code Here

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

//    tempReal = (OSDReal)array.get(1);
//    Assert.assertEquals(Double.NaN, tempReal.asReal(), 0);

    Assert.assertEquals(OSDType.Real, array.get(1).getType());
    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);
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.