Examples of transform()


Examples of jm.audio.math.RealFloatFFT_Radix2.transform()

     */
    public int work(float[] buffer) throws AOException {
        int returned = this.previous[0].nextWork(buffer);
        RealFloatFFT_Radix2 fft = null;
        fft = new RealFloatFFT_Radix2(inst.getBufSize());
        fft.transform(buffer);
        return returned;
    }
}

Examples of jsky.graphics.CanvasFigure.transform()

                // create a rectangle with lable and rotate it
                Rectangle2D.Double r1 = new Rectangle2D.Double(30., 30., 30., 40.);
                CanvasFigure fig = g.makeLabeledRectangle(r1, CoordinateConverter.USER, null, Color.blue, 2.0F,
                        "Test1", SwingConstants.CENTER, Color.blue, font, si);
                // rotate the rectangle by 30 degrees
                fig.transform(AffineTransform.getRotateInstance(Math.toRadians(30.), 25, 25));
                g.add(fig);

                // create another labeled rectangle. This one using the fixed selection interactor
                Rectangle2D.Double r2 = new Rectangle2D.Double(70., 70., 50., 50.);
                g.add(g.makeLabeledRectangle(r2, CoordinateConverter.USER, null, Color.white, 2.0F,

Examples of jsky.graphics.CanvasFigureGroup.transform()

                pos = new Point2D.Double(r3.x + 10, r3.y + 25);
                CanvasFigure f3 = g.makeLabel(pos, CoordinateConverter.USER, "Group", Color.yellow, new JLabel().getFont(), null);
                CanvasFigureGroup group = g.makeFigureGroup(rsi);
//                group.setResizable(false);
                // rotate the group by -25 deg
                group.transform(AffineTransform.getRotateInstance(Math.toRadians(-25.), 25, 25));
                group.add(f1);
                group.add(f2);
                group.add(f3);
                g.add(group);
                group.addCanvasFigureListener(listener);

Examples of mage.game.permanent.Permanent.transform()

                // check not to transform twice the same side
                if (permanent.isTransformed() != fromDayToNight) {
                    if (withoutTrigger) {                       
                        permanent.setTransformed(fromDayToNight);
                    } else {
                        permanent.transform(game);
                    }
                    if (fromDayToNight) {
                        game.informPlayers(new StringBuilder(permanent.getName()).append(" transforms into ").append(permanent.getSecondCardFace().getName()).toString());                   
                    } else {
                        game.informPlayers(new StringBuilder(permanent.getSecondCardFace().getName()).append(" transforms into ").append(permanent.getName()).toString());                   

Examples of mediautil.image.jpeg.LLJTran.transform()

    // 2. Transform the image using default options along with
    // transformation of the Orientation tags. Try other combinations of
    // LLJTran_XFORM.. flags. Use a jpeg with partial MCU (partialMCU.jpg)
    // for testing LLJTran.XFORM_TRIM and LLJTran.XFORM_ADJUST_EDGES
    int options = LLJTran.OPT_DEFAULTS | LLJTran.OPT_XFORM_ORIENTATION;
    llj.transform(op, options);

    // 3. Save the Image which is already transformed as specified by the
    //    input transformation in Step 2, along with the Exif header.
    try (OutputStream out = new BufferedOutputStream(output)) {
      llj.save(out, LLJTran.OPT_WRITE_ALL);

Examples of mikera.matrixx.Matrix33.transform()

    Vector3 d=Vector3.of(10.0,0.0,0.0);   
    d.addMultiple(v, 5.0);
    System.out.println(d)
   
    Matrix33 m=Matrixx.createXAxisRotationMatrix(Math.PI);
    Vector3 rotated=m.transform(d);      // rotate 180 degrees around x axis    
    System.out.println(rotated)

  }

}

Examples of mikera.transformz.ATransform.transform()

    AMatrix m1 = Matrixx.createScaleMatrix(3, 2.0);
    AMatrix m2 = Matrixx.createScaleMatrix(3, 1.5);
    ATransform ct = new MatrixTransform(m2)
        .compose(new MatrixTransform(m1));

    assertTrue(Vector3.of(3, 6, 9).epsilonEquals(ct.transform(v)));
  }
 
  @Test
  public void testRotationMatrix() {
    AVector v=Vectorz.createUniformRandomVector(3)

Examples of mil.nga.giat.geowave.accumulo.util.TransformerWriter.transform()

    TransformerWriter tw = new TransformerWriter(
        scanner,
        "test_table",
        operations,
        transformer);
    tw.transform();
    scanner.close();

    scanner = operations.createScanner(
        "test_table",
        "a",

Examples of net.br410bury.graphics.GraphicsMatrix.transform()

    {
      for(int ch = channels.length-1; ch >= 0; ch--)
      {
        if(channels[ch].isRotation())
        {
          g.transform(motion.getChannel(frame, start + ch) * Math.PI / 180, channels[ch]);
        }
        else
        {
          g.transform(motion.getChannel(frame, ch), channels[ch]);
        }

Examples of net.imglib2.transform.integer.SlicingTransform.transform()

        }

        if ( optimizable )
        {
//          System.out.println( "interval = " + Util.printInterval( interval ) );
          final Interval sliceInterval = t.transform( new BoundingBox( interval ) ).getInterval();
//          System.out.println( "transformed interval = " + Util.printInterval( sliceInterval ) );
          if ( iterableSource.supportsOptimizedCursor( sliceInterval ) )
          {
            // check for FlatIterationOrder
            boolean flat = FlatIterationOrder.class.isInstance( iterableSource.subIntervalIterationOrder( sliceInterval ) );
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.