Examples of Scale()


Examples of org.geotools.geometry.jts.TransformedShape.scale()

            ts.shape = shape;
            ts.translate(x, y);
            ts.rotate(rotation);
            // flip the symbol to take into account the screen orientation
            // where the y grows from top to bottom
            ts.scale(scale, -scale);

            return ts;
        } else {
            return null;
        }
View Full Code Here

Examples of org.gephi.lib.gleem.linalg.Vec3f.scale()

        cameraLocation[2] = MathUtil.clamp(cameraLocation[2], 1f, Float.POSITIVE_INFINITY);
        //System.out.println("camera: "+graphDrawable.cameraLocation[2]);

        //Displacement of camera according to mouse position. Clamped to graph limits
        Vec3f disVec = new Vec3f(mouseX, mouseY, 0);
        disVec.scale(stepRatio);
        //System.out.println(disVec.x()+"    "+disVec.y()+"     "+disVec.z());

        cameraLocation[0] += disVec.x();
        cameraLocation[1] += disVec.y();
        cameraLocation[2] += disVec.z();
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.views.utils.CoordinateTransform.scale()

      gc.setLineWidth(1);
     
     
      CoordinateTransform t = new CoordinateTransform(rect);
      t.shiftExternal(rect.width,0);
      t.scale(-1.0, 1.0);
     
      String[] boxContent = new String[] {
        MessageText.getString("PiecesView.DistributionView.NoAvl"),
        MessageText.getString("PiecesView.DistributionView.SeedAvl"),
        MessageText.getString("PiecesView.DistributionView.PeerAvl"),
View Full Code Here

Examples of org.jfree.experimental.swt.SWTGraphics2D.scale()

                        == RenderingHints.KEY_TEXT_ANTIALIASING) {
                    gci.setTextAntialias(SWT.ON);
                }
                SWTGraphics2D sg2d = new SWTGraphics2D(gci);
                if (scale) {
                    sg2d.scale(this.scaleX, this.scaleY);
                    this.chart.draw(sg2d, new Rectangle2D.Double(0, 0,
                            drawWidth, drawHeight), getAnchor(), this.info);
                }
                else {
                    this.chart.draw(sg2d, new Rectangle2D.Double(0, 0,
View Full Code Here

Examples of org.jmol.adapter.smarter.Atom.scale()

      if (Float.isNaN(x) || Float.isNaN(y) || Float.isNaN(z))
        break;
      Atom atom = atomSetCollection.addNewAtom();
      atom.atomName = atomName + (++atomCountInFirstModel);
      atom.set(x, y, z);
      atom.scale(ANGSTROMS_PER_BOHR);
      atomNames.add(atomName);
    }
  }
 
  protected void readAtomsInBohrCoordinates() throws Exception {
View Full Code Here

Examples of org.lwjgl.util.vector.Matrix4f.scale()

        lightModelView.flip();

        Matrix4f tempMatrix = new Matrix4f();
        tempMatrix.setIdentity();
        tempMatrix.translate(new Vector3f(0.5F, 0.5F, 0.5F));
        tempMatrix.scale(new Vector3f(0.5F, 0.5F, 0.5F));
        Matrix4f.mul(tempMatrix, lightProjectionTemp, textureMatrix);
        Matrix4f.mul(textureMatrix, lightModelViewTemp, tempMatrix);
        Matrix4f.transpose(tempMatrix, textureMatrix);
    }
View Full Code Here

Examples of org.lwjgl.util.vector.Vector2f.scale()

  public final void setVelocity(Vector2f velocity) {
    Vector2f v = new Vector2f(velocity.x, velocity.y);
    float speed = v.length();
    if (speed > MAX_SPEED)
      v.scale(MAX_SPEED / speed);
    this.velocity = v;
  }

  public abstract boolean isMovable();
View Full Code Here

Examples of org.lwjgl.util.vector.Vector3f.scale()

        particleVelocity.x = (randomX + initialVelocity.x + dx / 10) / 120;
        particleVelocity.y = (randomY + initialVelocity.y + dy / 10) / 120;
        if (enable3D) {
            particleVelocity.z = (randomZ + initialVelocity.z) / 120;
        }
        particleVelocity.scale(velocityModifier);
        return new Particle(particleLocation, particleVelocity, particleLifeTime);
    }

    /** Update the particle emitter. This does not render anything. */
    public void update() {
View Full Code Here

Examples of org.mt4j.components.visibleComponents.shapes.AbstractShape.scale()

      MTComponent baseComponent = tags[i];
      if (baseComponent instanceof AbstractShape) {
        AbstractShape shape = (AbstractShape) baseComponent;
//        System.out.println("Scaling: " + scX + " " + scY);
//        shape.scale(scX, scY, 1, shape.getCenterPointGlobal(), TransformSpace.GLOBAL);
        shape.scale(scX, scX, 1, shape.getCenterPointRelativeToParent(), TransformSpace.RELATIVE_TO_PARENT);
      }
    }
  }

 
View Full Code Here

Examples of org.mt4j.components.visibleComponents.shapes.MTPolygon.scale()

        clusterPoly.setLocalMatrix(new Matrix());
       
        //FIXME center are is negative if verts are in counterclockwise order?
//        Vector3D clusterCenter = clusterPoly.getCenterPointGlobal();
//        clusterPoly.scaleGlobal(1.1f, 1.1f, 1, new Vector3D(-1* clusterCenter.x, -1 * clusterCenter.y, clusterCenter.z));
        clusterPoly.scale(1.1f, 1.1f, 1, clusterPoly.getCenterPointLocal(), TransformSpace.LOCAL);
        this.addChild(clusterPoly);
      }else{
        System.err.println("Couldnt pack polygon.");
      }
    }
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.