Examples of mult()


Examples of org.jamesii.core.math.Matrix.mult()

          "Input and response variables must be set before regression can be calculated!");
    }
    if (getB() == null) {
      // Calculate coefficients.
      Matrix xT = getX().transpose();
      setB(xT.mult(getX()).solve());
      // Save this result for the calculation of the standard error for each
      // coefficient.
      setStandardErrorMatrix(getB().copy());
      setB(getB().mult(xT).mult(getY()));
    }
View Full Code Here

Examples of org.jboss.ejb3.core.test.ejbthree1828.FirstStateless.mult()

  
   @Test
   public void test1() throws NamingException
   {
      FirstStateless bean = lookup("FirstStatelessBean/local", FirstStateless.class);
      int actual = bean.mult(13, 17);
      assertEquals(221, actual);
   }
}
View Full Code Here

Examples of org.osm2world.core.math.VectorXYZ.mult()

        * projection.getAspectRatio();
      target.appendVector(camera.getRight().mult(width).invert()); //invert compensates for left-handed vs. right handed coordinates
     
      target.append("\n  up ");
      VectorXYZ up = camera.getUp();
      target.appendVector(up.mult(projection.getVolumeHeight()));
           
      target.append("\n  look_at ");
      target.appendVector(camera.getLookAt());
           
    } else {
View Full Code Here

Examples of org.osm2world.core.math.VectorXYZ.mult()

   
      append(INDENT);
   
      if (depth > 0) {
     
        normal = normal.mult(depth*SMALL_OFFSET);
        appendTriangle(
            triangle.v1.add(normal),
            triangle.v2.add(normal),
            triangle.v3.add(normal),
            null, null, null, tex1, tex2, tex3, false, true);
View Full Code Here

Examples of org.osm2world.core.math.VectorXYZ.mult()

      VectorXYZ vToTo = to.getPosXYZ().subtract(v).normalize();
     
      target.drawLineStrip(SMOOTHNESS, 3,
          v.add(vToFrom.mult(2)),
          v,
          v.add(vToTo.mult(2)));
     
    }

    @Override
    public void enforceConstraints() {
View Full Code Here

Examples of org.osm2world.core.math.VectorXZ.mult()

    assert 0 <= relativePosFromLeft && relativePosFromLeft <= 1;
   
    VectorXZ position = start ? getStartWithOffset() : getEndWithOffset();
    VectorXZ cutVector = start ? getStartCutVector() : getEndCutVector();
   
    return connectors.getPosXYZ(position.add(cutVector.mult(
        (-0.5 + relativePosFromLeft) * getWidth())));
   
  }

  @Override
 
View Full Code Here

Examples of org.osm2world.core.math.VectorXZ.mult()

                 
      /* move connected lines to make room for the node's representation */
     
      //connected node of line1 is moved orthogonally to the cut vector
      VectorXZ offset1 = cutVector.rightNormal();
      offset1 = offset1.mult(connectorLength / 2);
      if (inbound1) {
        renderable1.setEndOffset(offset1);
      } else {
        renderable1.setStartOffset(offset1);
      }
View Full Code Here

Examples of org.osm2world.core.math.VectorXZ.mult()

    if (cutCenter == null) {
      return null;
    } else {
     
      if (right) {
        return cutCenter.add(cutVector.mult(width * 0.5f));
      } else {
        return cutCenter.subtract(cutVector.mult(width * 0.5f));
      }
   
    }
 
View Full Code Here

Examples of org.osm2world.core.math.VectorXZ.mult()

    } else {
     
      if (right) {
        return cutCenter.add(cutVector.mult(width * 0.5f));
      } else {
        return cutCenter.subtract(cutVector.mult(width * 0.5f));
      }
   
    }
     
  }
 
View Full Code Here

Examples of org.osm2world.core.math.VectorXZ.mult()

     
     
      /* draw board */
     
      VectorXYZ[] vsPoster = {
        getBase().add(boardVector.mult(width/2)).addY(height),
        getBase().add(boardVector.mult(width/2)).addY(minHeight),
        getBase().add(boardVector.mult(-width/2)).addY(height),
        getBase().add(boardVector.mult(-width/2)).addY(minHeight)
      };
     
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.