Examples of absolute()


Examples of javax.vecmath.Vector4f.absolute()

    return maxIndex;
  }

  public static int closestAxis4(Vector4f vec) {
    Vector4f tmp = new Vector4f(vec);
    tmp.absolute();
    return maxAxis4(tmp);
  }
 
  public static float getCoord(Vector3f vec, int num) {
    switch (num) {
View Full Code Here

Examples of org.apache.harmony.sql.internal.rowset.SyncResolverImpl.absolute()

        //
        // SyncResolver resolver = ex.getSyncResolver();
        SyncResolver resolver = new SyncResolverImpl(null);

        try {
            resolver.absolute(1);
            fail("Should throw UnsupportedOperationException");
        } catch (UnsupportedOperationException e) {
            // expected
        }
        try {
View Full Code Here

Examples of org.apache.jena.jdbc.metadata.results.MetaResultSet.absolute()

    public void meta_result_set_movement_04() throws SQLException {
        MetaResultSet results = createMetaResultSet(1);
        Assert.assertTrue(results.isBeforeFirst());

        // Move to absolute row
        Assert.assertTrue(results.absolute(1));
        Assert.assertTrue(results.isFirst());
        Assert.assertFalse(results.isBeforeFirst());
        Assert.assertTrue(results.isLast());
        Assert.assertFalse(results.isAfterLast());
View Full Code Here

Examples of org.apache.ojb.broker.accesslayer.OJBIterator.absolute()

        ojbIter = (OJBIterator)broker.getIteratorByQuery(query);
       
        assertEquals("collection- and iterator-size must match", pagedColl.size(), ojbIter.size());
        assertEquals("index 10 - 14 expecting 5 rows", 5,ojbIter.size());
       
        ojbIter.absolute(2);
        article = (InterfaceArticle)ojbIter.next();
        assertEquals("Article id=12", article.getArticleId(), 12);
       
        ojbIter.relative(-1);
        article = (InterfaceArticle)ojbIter.next();
View Full Code Here

Examples of org.exolab.castor.jdo.QueryResults.absolute()

    public void testAbsoluteA() throws PersistenceException {
        _db.begin();
        OQLQuery oqlquery = _db.getOQLQuery(
                "SELECT object FROM " + Entity.class.getName() + " object");
        QueryResults enumeration = oqlquery.execute(true);
        assertTrue("should have been able to move to 1", enumeration.absolute(1));
        assertTrue("should have been able to move to 5", enumeration.absolute(5));
        assertTrue("should have been able to move to 10", enumeration.absolute(10));
        assertTrue("should have been able to move to 15", enumeration.absolute(15));
        assertTrue("should have been able to move to 20", enumeration.absolute(20));
        assertTrue("should have been able to move to 25", enumeration.absolute(25));
View Full Code Here

Examples of org.hsqldb.navigator.RowSetNavigator.absolute()

        RowSetNavigator navigator = result.getNavigator();
        int             size      = navigator.getSize();
        int[][]         blocks    = new int[size][3];

        for (int i = 0; i < size; i++) {
            navigator.absolute(i);

            Object[] data = navigator.getCurrent();

            blocks[i][LOBS.BLOCK_ADDR] =
                ((Integer) data[LOBS.BLOCK_ADDR]).intValue();
View Full Code Here

Examples of org.hsqldb_voltpatches.navigator.RowSetNavigator.absolute()

        RowSetNavigator navigator = result.getNavigator();
        int             size      = navigator.getSize();
        int[][]         blocks    = new int[size][3];

        for (int i = 0; i < size; i++) {
            navigator.absolute(i);

            Object[] data = navigator.getCurrent();

            blocks[i][0] = ((Integer) data[LOBS.BLOCK_ADDR]).intValue();
            blocks[i][1] = ((Integer) data[LOBS.BLOCK_COUNT]).intValue();
View Full Code Here

Examples of org.opengis.referencing.cs.AxisDirection.absolute()

            // Not the expected pattern.
            return null;
        }
        String group = m.group(1);
        final AxisDirection baseDirection = findDirection(BASE_DIRECTIONS, group);
        if (baseDirection == null || !AxisDirection.NORTH.equals(baseDirection.absolute())) {
            // We expected "North" or "South" direction.
            return null;
        }
        group = m.group(2);
        double meridian;
View Full Code Here

Examples of ptolemy.data.ScalarToken.absolute()

     */
    public void fire() throws IllegalActionException {
        super.fire();
        if (input.hasToken(0)) {
            ScalarToken in = (ScalarToken) input.get(0);
            output.send(0, in.absolute());
        }
    }

    /** Return the following type constraints: If the input type is Complex,
     *  the output type is no less than Double, otherwise, the output type
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.