Examples of Vector


Examples of org.ardverk.version.Vector

        DataUtils.short2beb(vclock.size(), out);
       
        for (Map.Entry<String, ? extends Vector> entry
            : vclock.entrySet()) {
          String key = entry.getKey();
          Vector value = entry.getValue();
         
          StringUtils.writeString(key, out);
          DataUtils.int2beb(value.getValue(), out);
        }
       
      } catch (IOException err) {
        throw new IllegalStateException("IOException", err);
      } finally {
View Full Code Here

Examples of org.bouncycastle.pqc.math.linearalgebra.Vector

    public static GF2Vector encryptionPrimitive(BCMcElieceCCA2PublicKey pubKey,
                                                GF2Vector m, GF2Vector z)
    {

        GF2Matrix matrixG = pubKey.getG();
        Vector mG = matrixG.leftMultiplyLeftCompactForm(m);
        return (GF2Vector)mG.add(z);
    }
View Full Code Here

Examples of org.bukkit.util.Vector

   
    // store player's original position, so we can return him safely back (in case he's underground and another player slaps him to heavens)
    Location loc = target.getLocation();
    slappedLastLocations.put(tName, loc);
   
    target.setVelocity(new Vector(0, slapHeight, 0));
   
    // insure player's safe return home even if they fall into deep water and no damage is done
    slappedUnslapTasks.put(tName,  Bukkit.getServer().getScheduler().scheduleSyncDelayedTask(CommandsEX.plugin, new Unslap(target, tName), (20 * 25)));

    if (showMessages) {
View Full Code Here

Examples of org.eclipse.draw2d.geometry.Vector

  private static void determineBezierPoints(Point c, Point q, Point r, Point s, int distanceAfterCurrent, int distanceBeforeNext) {
    // Determine v and m
    // Ray v = new Ray();
    int vx = q.x - c.x;
    int vy = q.y - c.y;
    Vector v = new Vector(vx, vy);
    double absV = v.getLength();
    // Ray m = new Ray();
    int mx = Math.round(c.x + ( (float) vx ) / 2);
    int my = Math.round(c.y + ( (float) vy ) / 2);

    // Determine tolerance
View Full Code Here

Examples of org.gephi.preview.api.Vector

    @Override
    public void mouseDragged(MouseEvent e) {
        if (!previewController.sendMouseEvent(buildPreviewMouseEvent(e, PreviewMouseEvent.Type.DRAGGED))) {
            setMoving(true);
            Vector trans = target.getTranslate();
            trans.set(e.getX(), e.getY());
            trans.sub(ref);
            trans.div(target.getScaling()); // ensure const. moving speed whatever the zoom is
            trans.add(lastMove);

            refreshLoop.refreshSketch();
        }
    }
View Full Code Here

Examples of org.gephi.preview.util.Vector

            originalBottomRight = new PointImpl(0f, 0f);
            return;
        }

        Node node = it.next();
        Vector topLeftVector = new Vector(node.getTopLeftPosition());
        Vector bottomRightVector = new Vector(node.getBottomRightPosition());

        while (it.hasNext()) {
            node = it.next();

            if (node.getTopLeftPosition().getX() < topLeftVector.x) {
View Full Code Here

Examples of org.gwtopenmaps.openlayers.client.layer.Vector

        style.setStrokeWidth(3);
        style.setFillOpacity(1);

        VectorOptions vectorOptions = new VectorOptions();
        vectorOptions.setStyle(style);
        vectorLayer = new Vector("Vector", vectorOptions);

        MarkersOptions markersOptions = new MarkersOptions();
        markerLayer = new Markers("Markers", markersOptions);

        initMapLayers(map);
View Full Code Here

Examples of org.jemmy.Vector

            public void run(Object... parameters) {
                int toOrig;
                int dragAttempt = 0;
                Timeout moveTimeout = wrap.getEnvironment().getTimeout(Drag.IN_DRAG_TIMEOUT).clone();
                while((toOrig = condition.to()) != 0) {
                    Vector axis = getScrollVector().
                            multiply(toOrig).setLenght(dragDelta);
                    if (reverse) {
                        axis.multiply(-1);
                    }
                    Vector shift = axis.clone();
                    Wrap<?> knob = getKnob();
                    Point orig = new Point(knob.getScreenBounds().getX() + knob.getScreenBounds().getWidth()/2, knob.getScreenBounds().getY() + knob.getScreenBounds().getHeight()/2);
                    knob.mouse().move(knob.toLocal(orig.getLocation()));
                    knob.mouse().press();
                    wrap.getEnvironment().getTimeout(Drag.BEFORE_DRAG_TIMEOUT).sleep();
                    try {
                        while (condition.to() == toOrig) {
                            wrap.getEnvironment().getTimeout(Drag.IN_DRAG_TIMEOUT).sleep();
//                            Rectangle old_pos = knob.getScreenBounds();
                            knob.mouse().move(knob.toLocal(orig.getLocation().translate(shift)));
//                            if (old_pos.equals(knob.getScreenBounds())) { // TODO: it would be better to check if we achieve maximum position
//                                break;
//                            }
                            if(scroll.position() == scroll.minimum() || scroll.position() == scroll.maximum()) {
                                break;
                            }
                            shift.add(axis);
                        }
                    } finally {
                        wrap.getEnvironment().getTimeout(Drag.BEFORE_DROP_TIMEOUT).sleep();
                        knob.mouse().release();
                    }
View Full Code Here

Examples of org.jfree.data.xy.Vector

    /**
     * Test that the equals() method distinguishes all fields.
     */
    public void testEquals() {
        // default instances
        Vector v1 = new Vector(1.0, 2.0);
        Vector v2 = new Vector(1.0, 2.0);
        assertTrue(v1.equals(v2));
        assertTrue(v2.equals(v1));

        v1 = new Vector(1.1, 2.0);
        assertFalse(v1.equals(v2));
        v2 = new Vector(1.1, 2.0);
        assertTrue(v1.equals(v2));

        v1 = new Vector(1.1, 2.2);
        assertFalse(v1.equals(v2));
        v2 = new Vector(1.1, 2.2);
        assertTrue(v1.equals(v2));
    }
View Full Code Here

Examples of org.jostraca.comp.antlr.collections.impl.Vector

    SimpleTokenManager(String name_, Tool tool_) {
        antlrTool = tool_;
        name = name_;
        // Don't make a bigger vector than we need, because it will show up in output sets.
        vocabulary = new Vector(1);
        table = new Hashtable();

        // define EOF symbol
        TokenSymbol ts = new TokenSymbol("EOF");
        ts.setTokenType(Token.EOF_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.