Examples of mul()


Examples of org.jmol.util.Quaternion.mul()

        Quaternion q1 = new Quaternion((Point4f) x1.value);
        switch (x2.tok) {
        default:
          return addX(q1.add(ScriptVariable.fValue(x2)).toPoint4f());
        case Token.point4f:
          return addX(q1.mul(new Quaternion((Point4f) x2.value)).toPoint4f());
        }
      case Token.point3f:
        pt = new Point3f((Point3f) x1.value);
        switch (x2.tok) {
        case Token.point3f:
View Full Code Here

Examples of org.jpox.store.mapped.expression.ScalarExpression.mul()

        for (;;)
        {
            if (p.parseChar('*'))
            {
                expr = expr.mul(compileUnaryExpression());
            }
            else if (p.parseChar('/'))
            {
                expr = expr.div(compileUnaryExpression());
            }
View Full Code Here

Examples of org.jquantlib.math.matrixutilities.Matrix.mul()

        return diffusion(t, new Array());
    }

    public Matrix covariance(/* @Time */final double t, final Array x) {
        final Matrix sigma = this.diffusion(t, x);
        return sigma.mul(sigma.transpose());
    }

    public Matrix covariance(/* @Time */final double t) {
        return diffusion(t, new Array());
    }
View Full Code Here

Examples of org.jquantlib.math.matrixutilities.Matrix.mul()

    }

    @Override
    public Matrix covariance(final /*@Time*/ double t0, final Array x0, final /*@Time*/ double dt)  {
        final Matrix tmp = stdDeviation(t0, x0, dt);
        return tmp.mul(tmp.transpose());
    }

    @Override
    public Array evolve(final /*@Time*/ double t0, final Array x0, final /*@Time*/double dt, final Array dw)  {

View Full Code Here

Examples of org.jquantlib.math.matrixutilities.Matrix.mul()

        return diffusion(t, new Array(0)); //ZH:QL097 using Null<Array>
    }

    public Matrix covariance(/* @Time */final double t, final Array x) {
        final Matrix sigma = this.diffusion(t, x);
        return sigma.mul(sigma.transpose());
    }

    public Matrix covariance(/* @Time */final double t) {
        return diffusion(t, new Array(0)); //ZH:QL097 using Null<Array> which is new Array(), see Null.hpp
    }
View Full Code Here

Examples of org.jquantlib.math.matrixutilities.Matrix.mul()

    @Override
    public Matrix covarianceDiscretization(
                final StochasticProcess sp,
                /* @Time */final double t0, /* @Real */ final Array x0, /* @Time */final double dt) {
        final Matrix sigma = sp.diffusion(t0, x0);
        return sigma.mul(sigma.transpose()).mulAssign(dt);
    }


    //
    // Implements Discretization1D
View Full Code Here

Examples of org.luaj.vm2.LuaValue.mul()

      break;
    case OP_SUB:
      r = v1.sub(v2);
      break;
    case OP_MUL:
      r = v1.mul(v2);
      break;
    case OP_DIV:
      r = v1.div(v2);
      break;
    case OP_MOD:
View Full Code Here

Examples of org.spout.api.geo.discrete.Point.mul()

  @Override
  public void updateView() {
    Transform transform = getOwner().getPhysics().getTransform();
    Point point = transform.getPosition().add(0.0f, getHeight(), 0.0f);
    Matrix4f pos = Matrix4f.createTranslation(point.mul(-1));
    Matrix4f rot = getRotation();
    view = pos.mul(rot);
    frustum.update(projection, view, transform.getPosition());
  }
View Full Code Here

Examples of org.spout.math.vector.Vector3f.mul()

    // Slightly dropping upwards
    impulse = impulse.add(0.0, 0.1, 0.0);

    // Conversion factor, some sort of unit problem
    //TODO: This needs an actual value and this value might change when gravity changes!
    impulse = impulse.mul(100);

    // Finally drop using a 4 second pickup delay
    Item spawnedItem = Item.drop(dropFrom.getPosition(), item, impulse);
    spawnedItem.setUncollectableDelay(4000);
  }
View Full Code Here

Examples of org.spout.math.vector.Vector4f.mul()

        weightedSun = dawnColor;
      } else {
        float dawnWeight = y / sunSize;
        weightedSun = sunColor.mul(dawnWeight).add(dawnColor.mul(1 - dawnWeight));
      }
      skyColor = weightedSun.mul(sunWeight).add(moonColor.mul((1 - sunWeight)));
    } else {
      if (y < 0) {
        sunWeight = 0;
        skyColor = moonColor;
      } else {
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.