Examples of cross()


Examples of javax.vecmath.Vector3f.cross()

        int iOrder = (int) (order + 0.01f);
        boolean isIntegerOrder = (order - iOrder <= 0.02f);
        if (!isIntegerOrder || (iOrder = iOrder + firstProper) >= maxAxis)
          continue;
        if (nAxes[iOrder] < axesMaxN[iOrder]) {
          v3.cross(v1, v2);
          checkAxisOrder(iOrder, v3, center);
        }
      }
    }
View Full Code Here

Examples of javax.vecmath.Vector3f.cross()

              if (elements[k] == iMin) {
                v1.sub(atoms[i], atoms[j]);
                v2.sub(atoms[i], atoms[k]);
                v1.normalize();
                v2.normalize();
                v3.cross(v1, v2);
                getAllAxes(v3);
//                checkAxisOrder(3, v3, center);
                v1.set(atoms[i]);
                v1.add(atoms[j]);
                v1.add(atoms[k]);
View Full Code Here

Examples of javax.vecmath.Vector3f.cross()

        pt.add(a1, a2);
        pt.scale(0.5f);
        v1.sub(a1, center);
        v2.sub(a2, center);
        if (!isParallel(v1, v2)) {
          v3.cross(v1, v2);
          v3.normalize();
          nPlanes = getPlane(v3);
        }

        // second, look for planes perpendicular to the A -- B line
View Full Code Here

Examples of javax.vecmath.Vector3f.cross()

      Vector3f v2 = new Vector3f();
      pt1f.set(imesh.vertices[0]);
      viewer.transformPoint(pt1f, pt1f);
      v1.sub(pt2f, pt1f);
      v2.set(v1.x, v1.y, v1.z + 1);
      v2.cross(v2,v1);
      v2.normalize();
      float f = viewer.scaleToScreen((int)pt1f.z, 100);
      v2.scale(f);
      pt1f.set(pt2f);
      pt1f.add(v2);
View Full Code Here

Examples of javax.vecmath.Vector3f.cross()

    Vector3f y = new Vector3f();
    boolean isReverse = (lcaoCartoon.length() > 0 && lcaoCartoon.charAt(0) == '-');
    if (isReverse)
      lcaoCartoon = lcaoCartoon.substring(1);
    int sense = (isReverse ? -1 : 1);
    y.cross(z, x);
    if (rotRadians != 0) {
      AxisAngle4f a = new AxisAngle4f();
      if (rotAxis.x != 0)
        a.set(x, rotRadians);
      else if (rotAxis.y != 0)
View Full Code Here

Examples of javax.vecmath.Vector3f.cross()

    if (forward.lengthSquared() < BulletGlobals.FLT_EPSILON) {
      forward.set(1f, 0f, 0f);
    }

    Vector3f right = new Vector3f();
    right.cross(cameraUp, forward);
    Quat4f roll = new Quat4f();
    QuaternionUtil.setRotation(roll, right, -rele);

    Matrix3f tmpMat1 = new Matrix3f();
    Matrix3f tmpMat2 = new Matrix3f();
View Full Code Here

Examples of kodkod.engine.bool.BooleanMatrix.cross()

   
    switch(op) {
    case UNION          : ret = first.or(rest); break;
    case INTERSECTION  : ret = first.and(rest); break;
    case OVERRIDE     : ret = first.override(rest); break;
    case PRODUCT    : ret = first.cross(rest); break;
    default :
      throw new IllegalArgumentException("Unknown associative operator: " + op);
    }

    return cache(expr, ret);
View Full Code Here

Examples of org.uguess.birt.report.engine.spreadsheet.model.MergeBlock.cross()

                endColumn);

        Iterator<MergeBlock> itr = merges.iterator();
        while (itr.hasNext()) {
            merge = itr.next();
            if (mbNew.cross(merge)) {
                if (mbNew.equals(merge)) {
                    // if already a same merge block exists.
                    return merge;
                } else if (mbNew.include(merge)) {
                    // if already an overlapped merge block exists, we
View Full Code Here

Examples of railo.runtime.img.vecmath.Vector3f.cross()

          float m4 = y < height-1 ? width45*bump.evaluate(nx, ny + 1.0f)-m0 : -2;
         
          if (m1 != -2 && m4 != -2) {
            v1.x = -1.0f; v1.y = 0.0f; v1.z = m1;
            v2.x = 0.0f; v2.y = 1.0f; v2.z = m4;
            n.cross(v1, v2);
            n.normalize();
            if (n.z < 0.0)
              n.z = -n.z;
            normal.add(n);
            count++;
View Full Code Here

Examples of se.llbit.math.Vector3d.cross()

  public synchronized void onStrafeLeft() {
    Vector3d d = new Vector3d(1, 0, 0);
    tmpTransform.rotY(yaw);
    tmpTransform.transform(d);
    Vector3d right = new Vector3d();
    right.cross(up, d);
    origin.scaleAdd(-1, right, origin);
    updateOrigin();
    refresh();
  }
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.