Examples of interpolate()


Examples of javax.vecmath.Quat4d.interpolate()

        speed.add(drag);
    }

    private void angularDrag() {
        Quat4d zero = new Quat4d(0, 0, 0, 1);
        zero.interpolate(rotationSpeed, -0.1);
        rotationSpeed.mul(zero);
    }

    private void thrust(){
        if(speed.length()>10){
View Full Code Here

Examples of javax.vecmath.Quat4f.interpolate()

    public static void setToInterpolateState(EntityRef entity, CharacterStateEvent a, CharacterStateEvent b, long time) {
        float t = (float) (time - a.getTime()) / (b.getTime() - a.getTime());
        Vector3f newPos = new Vector3f();
        newPos.interpolate(a.getPosition(), b.getPosition(), t);
        Quat4f newRot = new Quat4f();
        newRot.interpolate(a.getRotation(), b.getRotation(), t);
        LocationComponent location = entity.getComponent(LocationComponent.class);
        location.setWorldPosition(newPos);
        location.setWorldRotation(newRot);
        entity.saveComponent(location);
View Full Code Here

Examples of javax.vecmath.Vector3f.interpolate()

    }

    public static void setToInterpolateState(EntityRef entity, CharacterStateEvent a, CharacterStateEvent b, long time) {
        float t = (float) (time - a.getTime()) / (b.getTime() - a.getTime());
        Vector3f newPos = new Vector3f();
        newPos.interpolate(a.getPosition(), b.getPosition(), t);
        Quat4f newRot = new Quat4f();
        newRot.interpolate(a.getRotation(), b.getRotation(), t);
        LocationComponent location = entity.getComponent(LocationComponent.class);
        location.setWorldPosition(newPos);
        location.setWorldRotation(newRot);
View Full Code Here

Examples of kg.apc.charting.CubicSpline.interpolate()

        
         double currentX = minX;
        
         while (currentX <= maxX) {
            x = chartRect.x + (int) ((currentX - minXVal) * dxForDVal);
            int yHeight = (int) ((cs.interpolate(currentX) - minYVal) * dyForDVal);
            y = chartRect.y + chartRect.height - yHeight;

            //prevent out of range
            if (y < chartRect.y) {
               y = chartRect.y;
View Full Code Here

Examples of net.sourceforge.theba.core.math.NonUniformInterpolation.interpolate()

        double xMax = Double.MIN_VALUE;
        double yMax = Double.MIN_VALUE;
        double arcLength = 0;
        for (int i = 0; i < s.length; i++) {
            xi[i + radius] = nx.interpolate(arcLength);
            yi[i + radius] = ny.interpolate(arcLength);

            if (xi[i + radius] < xMin)
                xMin = xi[i + radius];
            if (yi[i + radius] < yMin)
                yMin = yi[i + radius];
View Full Code Here

Examples of org.apache.batik.anim.values.AnimatableValue.interpolate()

                                                          (float) p.getY(), ang);
        } else {
            accumulation = null;
        }

        this.value = value.interpolate(this.value, null, interpolation,
                                       accumulation, repeatIteration);
        if (this.value.hasChanged()) {
            markDirty();
        }
    }
View Full Code Here

Examples of org.apache.commons.configuration.interpol.ConfigurationInterpolator.interpolate()

     */
    protected String constructFileName(
            MultiFileBuilderParametersImpl multiParams)
    {
        ConfigurationInterpolator ci = getInterpolator();
        return String.valueOf(ci.interpolate(multiParams.getFilePattern()));
    }

    /**
     * Creates a builder for a managed configuration. This method is called
     * whenever a configuration for a file name is requested which has not yet
View Full Code Here

Examples of org.apache.commons.configuration2.interpol.ConfigurationInterpolator.interpolate()

     * @return the value with variables substituted
     */
    protected Object interpolate(Object value)
    {
        ConfigurationInterpolator ci = getInterpolator();
        return (ci != null) ? ci.interpolate(value) : value;
    }

    @Override
    public Configuration subset(String prefix)
    {
View Full Code Here

Examples of org.apache.commons.math.analysis.interpolation.LoessInterpolator.interpolate()

            yvals[index++] = jdToMagMap.get(jd);
          }

          try {
            final LoessInterpolator interpolator = new LoessInterpolator();
            function = interpolator.interpolate(xvals, yvals);

            fit = new ArrayList<ValidObservation>();
            residuals = new ArrayList<ValidObservation>();
            double sumSqResiduals = 0;
View Full Code Here

Examples of org.apache.deltaspike.core.api.message.MessageInterpolator.interpolate()

        MessageInterpolator messageInterpolator = messageContext.getMessageInterpolator();
        if (messageInterpolator != null)
        {
            Locale locale = messageContext.getLocale();

            ret = messageInterpolator.interpolate(template, getArguments(), locale);
        }

        return ret;
    }
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.