Examples of Vector


Examples of com.googlecode.gaal.data.api.Vector

        }
    }

    private static void drawVectors(VectorDrawing drawing, Map<Integer, Vector> selectedVectors, List<String> labels) {
        for (Map.Entry<Integer, Vector> entry : selectedVectors.entrySet()) {
            Vector vector = entry.getValue();
            int index = entry.getKey();
            drawing.drawVector(vector.get(0), vector.get(1), labels.get(index), TikzConstants.VECTOR_STYLES[index]);
        }
    }
View Full Code Here

Examples of com.googlecode.jumpnevolve.math.Vector

    engine.setTargetFrameRate(100);

    World world = new World(1000, 300, 1);
    world.setZoom(3000);

    world.add(new Ground(world, new Vector(300, 300), new Vector(800, 20)));

    engine.switchState(world);

    engine.start();
  }
View Full Code Here

Examples of com.itextpdf.text.pdf.parser.Vector

    public void renderImage(ImageRenderInfo info) {}
    public void renderText(TextRenderInfo info)
    {
      if(info.getText().toLowerCase().trim().equals(target.toLowerCase().trim()))
      {
        Vector bottomLeft = info.getDescentLine().getStartPoint();
        Vector topRight = info.getAscentLine().getEndPoint();
        rect = new Rectangle(bottomLeft.get(Vector.I1),
            bottomLeft.get(Vector.I2),
            topRight.get(Vector.I1),
            topRight.get(Vector.I2));
        matches.add(new Object[]{rect, null});
      }
    }
View Full Code Here

Examples of com.leapmotion.leap.Vector

  public PVector getTipOnScreen(Pointable pointable) {
    PVector pos;

    ScreenList sl = this.controller.locatedScreens();
    com.leapmotion.leap.Screen calibratedScreen = sl.get(activeScreenNr);
    Vector loc = calibratedScreen.intersect(pointable, true);

    float _x = PApplet.map(loc.getX(), 0, 1, 0, this.p.displayWidth);
    _x -= p.getLocationOnScreen().x;
    float _y = PApplet.map(loc.getY(), 0, 1, this.p.displayHeight, 0);
    _y -= p.getLocationOnScreen().y;

    pos = new PVector(_x, _y);
    return pos;
  }
View Full Code Here

Examples of com.math.Vector

  /**
   * Constructor
   */
  public Camera(Vector pos,Quat rot) {//Vector rot
    super(new Vector(1,1,2), pos, rot,int2color(0));
 
View Full Code Here

Examples of com.sk89q.craftbook.util.Vector

     *
     * @return
     */
    private static Vector fromWE(com.sk89q.worldedit.Vector vec) {

        return new Vector(vec.getX(), vec.getY(), vec.getZ());
    }
View Full Code Here

Examples of com.sk89q.worldedit.Vector

     * @param oldDirection the old direction to transform
     * @return a new state or null if none could be found
     */
    @Nullable
    private static StateValue getNewStateValue(State state, Transform transform, Vector oldDirection) {
        Vector newDirection = transform.apply(oldDirection).subtract(transform.apply(Vector.ZERO)).normalize();
        StateValue newValue = null;
        double closest = -2;
        boolean found = false;

        for (StateValue v : state.valueMap().values()) {
View Full Code Here

Examples of de.lmu.ifi.dbs.elki.math.linearalgebra.Vector

    // test application to a vector
    double[] dv = new double[testdim];
    for(int i = 0; i < testdim; i++) {
      dv[i] = i * i + testdim;
    }
    Vector v1 = new Vector(dv.clone());
    Vector v2 = new Vector(dv.clone());

    Vector v3 = t.apply(v1);
    assertEquals("identity transformation wasn't identical", v2, v3);

    Vector v4 = t.applyInverse(v2);
    assertEquals("inverse of identity wasn't identity", v1, v4);
  }
View Full Code Here

Examples of de.psi.telco.sumoplayer.util.Vector

        PointImpl endPos = new PointImpl(points.get(idx+1).getX(),points.get(idx+1).getY());
        double partialLen = startPos.distance(endPos);
        double rest = pos-len;
        double fact = rest/partialLen;
       
        Vector out = startPos.add((endPos.sub(startPos).scale(fact)));
        return new PointImpl(out.getX(),out.getY());
      }else{
        return points.get(points.size()-1);    // just return last point
      }
   
    }catch(Exception e){
View Full Code Here

Examples of dwlab.base.service.Vector

   
    tileMap.visualizer = new Visualizer(){
      double dAngle = Math.PI / 6d;
      double dCoord = 0.2;

      Vector vector = new Vector();
     
     
      @Override
      public void drawTile( TileMap tileMap, double x, double y, double width, double height, int tileX, int tileY, Color drawingColor ) {
        TileSet tileSet =tileMap.tileSet;
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.