Examples of addPoint()


Examples of lineage2.gameserver.templates.npc.WalkerRoute.addPoint()

            Location loc = Location.parse(nextElement);
            NpcString phrase = nextElement.attributeValue("phrase_id") == null ? null : NpcString.valueOf(Integer.parseInt(nextElement.attributeValue("phrase_id").toUpperCase()));
            int socialActionId = nextElement.attributeValue("social_action_id") == null ? -1 : Integer.parseInt(nextElement.attributeValue("social_action_id"));
            int delay = nextElement.attributeValue("delay") == null ? 0 : Integer.parseInt(nextElement.attributeValue("delay"));
            boolean running = nextElement.attributeValue("running") == null ? false : Boolean.parseBoolean(nextElement.attributeValue("running"));
            walkerRoute.addPoint(new WalkerRoutePoint(loc, phrase, socialActionId, delay, running));
          }
          template.addWalkerRoute(walkerRoute);
        }
        else if (nodeName.equalsIgnoreCase("random_actions"))
        {
View Full Code Here

Examples of net.opentsdb.core.WritableDataPoints.addPoint()

          }
        }
        final WritableDataPoints dp = getDataPoints(tsdb, metric, tags);
        Deferred<Object> d;
        if (Tags.looksLikeInteger(value)) {
          d = dp.addPoint(timestamp, Tags.parseLong(value));
        } else // floating point value
          d = dp.addPoint(timestamp, Float.parseFloat(value));
        }
        d.addErrback(errback);
        points++;
View Full Code Here

Examples of net.sf.latexdraw.glib.models.interfaces.shape.IPolyline.addPoint()

      final IPolyline xLine = ShapeFactory.createPolyline();
      final IPolyline yLine = ShapeFactory.createPolyline();

      xLine.addPoint(ShapeFactory.createPoint(posX+shape.getGridStartX()*IShape.PPC + arr0Reduction, posY));
      xLine.addPoint(ShapeFactory.createPoint(posX+shape.getGridEndX()*IShape.PPC - arr1Reduction, posY));
      yLine.addPoint(ShapeFactory.createPoint(posX, posY-shape.getGridStartY()*IShape.PPC - arr0Reduction));
      yLine.addPoint(ShapeFactory.createPoint(posX, posY-shape.getGridEndY()*IShape.PPC + arr1Reduction));

      xLine.getArrowAt(0).copy(arr0);
      xLine.getArrowAt(1).copy(arr1);
      yLine.getArrowAt(0).copy(shape.getArrowAt(0));
View Full Code Here

Examples of net.sf.latexdraw.glib.models.interfaces.shape.IPolyline.addPoint()

      final IPolyline yLine = ShapeFactory.createPolyline();

      xLine.addPoint(ShapeFactory.createPoint(posX+shape.getGridStartX()*IShape.PPC + arr0Reduction, posY));
      xLine.addPoint(ShapeFactory.createPoint(posX+shape.getGridEndX()*IShape.PPC - arr1Reduction, posY));
      yLine.addPoint(ShapeFactory.createPoint(posX, posY-shape.getGridStartY()*IShape.PPC - arr0Reduction));
      yLine.addPoint(ShapeFactory.createPoint(posX, posY-shape.getGridEndY()*IShape.PPC + arr1Reduction));

      xLine.getArrowAt(0).copy(arr0);
      xLine.getArrowAt(1).copy(arr1);
      yLine.getArrowAt(0).copy(shape.getArrowAt(0));
      yLine.getArrowAt(1).copy(shape.getArrowAt(2));
View Full Code Here

Examples of net.sourceforge.gpstools.plot.SvgPlot.addPoint()

            plot.addData(xdata, ydata);
        }
        for (Wpt wpt : pts) {
            for (Date d : timeWpt(wpt, 0.01)) {
                try {
                    plot.addPoint(unitConversion(x, getQuantity(d, x)),
                            unitConversion(y, getQuantity(d, y)), wpt.getName());
                } catch (Exception err) {
                    System.err.println("Warning: Cannot plot Wpt:");
                    System.err.println(wpt.getName());
                    System.err.println(wpt.getLon());
View Full Code Here

Examples of ofc4j.model.elements.ScatterChart.addPoint()

      Number y = (Number) getValueAt( row, 1 );
      Number z = (Number) getValueAt( row, 2 );

      setupDotSize( sc, z );

      sc.addPoint( x.doubleValue(), y.doubleValue() );

      if ( content != null ) {
        String zstr = null;
        if ( df != null ) {
          zstr = df.format( z );
View Full Code Here

Examples of org.apache.commons.math3.optim.nonlinear.scalar.gradient.CircleScalar.addPoint()

public class MultiStartMultivariateOptimizerTest {
    @Test
    public void testCircleFitting() {
        CircleScalar circle = new CircleScalar();
        circle.addPoint( 30.068.0);
        circle.addPoint( 50.0,  -6.0);
        circle.addPoint(110.0, -20.0);
        circle.addPoint( 35.015.0);
        circle.addPoint( 45.097.0);
        // TODO: the wrapper around NonLinearConjugateGradientOptimizer is a temporary hack for
View Full Code Here

Examples of org.apache.commons.math3.optimization.general.CircleScalar.addPoint()

public class MultivariateDifferentiableMultiStartOptimizerTest {

    @Test
    public void testCircleFitting() {
        CircleScalar circle = new CircleScalar();
        circle.addPoint( 30.068.0);
        circle.addPoint( 50.0,  -6.0);
        circle.addPoint(110.0, -20.0);
        circle.addPoint( 35.015.0);
        circle.addPoint( 45.097.0);
        // TODO: the wrapper around NonLinearConjugateGradientOptimizer is a temporary hack for
View Full Code Here

Examples of org.apache.commons.math3.optimization.general.CircleScalar.addPoint()

    @Test
    public void testCircleFitting() {
        CircleScalar circle = new CircleScalar();
        circle.addPoint( 30.068.0);
        circle.addPoint( 50.0,  -6.0);
        circle.addPoint(110.0, -20.0);
        circle.addPoint( 35.015.0);
        circle.addPoint( 45.097.0);
        // TODO: the wrapper around NonLinearConjugateGradientOptimizer is a temporary hack for
        // version 3.1 of the library. It should be removed when NonLinearConjugateGradientOptimizer
View Full Code Here

Examples of org.apache.commons.math3.optimization.general.CircleScalar.addPoint()

    @Test
    public void testCircleFitting() {
        CircleScalar circle = new CircleScalar();
        circle.addPoint( 30.068.0);
        circle.addPoint( 50.0,  -6.0);
        circle.addPoint(110.0, -20.0);
        circle.addPoint( 35.015.0);
        circle.addPoint( 45.097.0);
        // TODO: the wrapper around NonLinearConjugateGradientOptimizer is a temporary hack for
        // version 3.1 of the library. It should be removed when NonLinearConjugateGradientOptimizer
        // will officially be declared as implementing MultivariateDifferentiableOptimizer
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.