Examples of slice()


Examples of ca.eandb.jmist.framework.geometry.MeshBuilder.slice()

      Point3 r;

      Basis3 basis = Basis3.fromUW(p.vectorTo(q), Vector3.K);
      Plane3 planeKite = Plane3.throughPoint(p, basis);

      b.slice(planeKite, true);

      q = new Point3(halfTableDiag * cost3, halfTableDiag * sint3, 0.0);
      r = new Point3(starPointRadius * cost2, starPointRadius * sint2, 0.0);

      Ray3 ray = new Ray3(r, Vector3.K);
View Full Code Here

Examples of ca.eandb.jmist.framework.path.Path.slice()

  }


  private final Path generatePath(PathSeed seed) {
    Path path = generatePath(seed.randomSeed);
    return path.slice(seed.lightPathLength, seed.eyePathLength);
  }

  /* (non-Javadoc)
   * @see ca.eandb.jdcp.job.ParallelizableJob#getNextTask()
   */
 
View Full Code Here

Examples of com.android.dx.util.ByteArray.slice()

        int codeOffset = offset;
        offset += codeLength;
        length -= codeLength;
        BytecodeArray code =
            new BytecodeArray(bytes.slice(codeOffset, codeOffset + codeLength),
                              pool);
        if (observer != null) {
            code.forEach(new CodeObserver(code.getBytes(), observer));
        }
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.airlift.slice.DynamicSliceOutput.slice()

        for (int i = 0; i < numberOfOverflows; i++) {
            out.appendShort(overflows[i]);
        }

        return out.slice();
    }

    @Override
    public int estimatedSerializedSize()
    {
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.netty.buffer.ChannelBuffer.slice()

                    return wrappedBuffer(
                            copiedBuffer(
                                    Integer.toHexString(contentLength),
                                    CharsetUtil.US_ASCII),
                            wrappedBuffer(CRLF),
                            content.slice(content.readerIndex(), contentLength),
                            wrappedBuffer(CRLF));
                }
            } else {
                return chunk.getContent();
            }
View Full Code Here

Examples of com.google.common.io.ByteSource.slice()

                        if (length <= 0) {
                            assert length == 0;
                            // Easier than worrying about hasNext
                            is = EMPTY;
                        } else {
                            is = is.slice(start, length);
                        }
                    }

                    // TODO: Open buffered stream??
View Full Code Here

Examples of com.google.gwt.gears.client.blob.Blob.slice()

    try {
      blob6.getBytes(999, 1);
      fail("Read error during getBytes.");
    } catch (JavaScriptException jse) { }

    byte[] bytes6a = blob6.slice(2).getBytes();
    byte[] bytes6b = blob6.getBytes(2);
    assertEquals(3, bytes6a.length);
    assertEquals(3, bytes6b.length);
    for (int i = 0; i < bytes6a.length; i++) {
      assertEquals(bytes6a[i], bytes6b[i]);
View Full Code Here

Examples of com.taobao.metamorphosis.server.store.MessageStore.slice()

        final int opaque = 0;
        final int maxSize = 1024;
        final long offset = 10;
        final MessageStore store = this.mocksControl.createMock(MessageStore.class);
        EasyMock.expect(this.storeManager.getMessageStore(this.topic, partition)).andReturn(store);
        EasyMock.expect(store.slice(offset, maxSize)).andReturn(null);
        this.conn.response(new BooleanCommand(HttpStatus.NotFound, "Could not find message at position "
                + offset, opaque));
        EasyMock.expect(store.getMaxOffset()).andReturn(offset);
        EasyMock.expectLastCall();
        this.mocksControl.replay();
View Full Code Here

Examples of com.topologi.diffx.sequence.SequenceSlicer.slice()

      formatter.declarePrefixMapping(seq1.getPrefixMapping());
      formatter.declarePrefixMapping(seq2.getPrefixMapping());

      if (config != null) formatter.setConfig(config);
      SequenceSlicer slicer = new SequenceSlicer(seq1, seq2);
      slicer.slice();
      slicer.formatStart(formatter);
      DiffXAlgorithm df = new DiffXFitopsy(seq1, seq2);
      df.process(formatter);
      slicer.formatEnd(formatter);
  }
View Full Code Here

Examples of de.arago.portlet.util.Paginator.slice()

        assertEquals(1, pager.firstPage());
        assertEquals(5, pager.lastPage());

        pager.go(1);
        assertEquals(1, pager.getCurrentPage());
        assertEquals(page1, pager.slice(items));

        pager.go(2);
        assertEquals(2, pager.getCurrentPage());
        assertEquals(page2, pager.slice(items));
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.