Examples of dot()


Examples of ca.eandb.jmist.math.Vector3.dot()

  @Override
  public Color bsdf(SurfacePoint x, Vector3 in, Vector3 out,
      WavelengthPacket lambda) {

    Vector3 N = x.getNormal();
    if (-N.dot(in) <= 0.0 || N.dot(out) <= 0.0) {
      return lambda.getColorModel().getBlack(lambda);
    }

    in = in.unit();
    out = out.unit();
View Full Code Here

Examples of com.alibaba.security.simpleimage.analyze.sift.matrix.SimpleMatrix.dot()

        SimpleMatrix b = (SimpleMatrix) d.clone();
        b.negate();
        // Solve: A x = b
        H.solveLinear(b);
        ref.val = b.dot(d);
        return (b);
    }

    private boolean isTooEdgelike(ImageMap space, int x, int y, double r) {
        double D_xx, D_yy, D_xy;
View Full Code Here

Examples of com.ardor3d.math.Quaternion.dot()

        // selected as the merged box axes.
        final Quaternion kQ0 = Quaternion.fetchTempInstance(), kQ1 = Quaternion.fetchTempInstance();
        kQ0.fromAxes(rkBox0._xAxis, rkBox0._yAxis, rkBox0._zAxis);
        kQ1.fromAxes(rkBox1._xAxis, rkBox1._yAxis, rkBox1._zAxis);

        if (kQ0.dot(kQ1) < 0.0) {
            kQ1.multiplyLocal(-1.0);
        }

        final Quaternion kQ = kQ0.addLocal(kQ1);
        kQ.normalizeLocal();
View Full Code Here

Examples of com.ardor3d.math.Vector3.dot()

            return false;
        }

        rayDir.cross(diff, wCrossD);

        fAWxDdU[0] = Math.abs(wCrossD.dot(_xAxis));
        rhs = _extent.getY() * fAWdU[2] + _extent.getZ() * fAWdU[1];
        if (fAWxDdU[0] > rhs) {
            return false;
        }

View Full Code Here

Examples of com.ardor3d.math.type.ReadOnlyVector3.dot()

     *             if the plane is null.
     */
    @Override
    public boolean intersectsPlane(final ReadOnlyPlane plane, final Vector3 locationStore) {
        final ReadOnlyVector3 normal = plane.getNormal();
        final double denominator = normal.dot(_direction);

        if (denominator > -MathUtils.EPSILON && denominator < MathUtils.EPSILON) {
            return false; // coplanar
        }

View Full Code Here

Examples of com.ardor3d.math.type.ReadOnlyVector3.dot()

        if (denominator > -MathUtils.EPSILON && denominator < MathUtils.EPSILON) {
            return false; // coplanar
        }

        final double numerator = -normal.dot(_origin) + plane.getConstant();
        final double ratio = numerator / denominator;

        if (ratio < MathUtils.EPSILON) {
            return false; // intersects behind _origin
        }
View Full Code Here

Examples of com.jme3.math.Vector2f.dot()

      ComputeNormal();
    }

    Vector2f TestVector = new Vector2f(Point.subtract(m_PointA));
   
    return TestVector.dot(m_Normal); //.x*m_Normal.x + TestVector.y*m_Normal.y;//DotProduct(TestVector,m_Normal);

  }

  /**
   *
 
View Full Code Here

Examples of com.jme3.math.Vector3f.dot()

                Vector3f newNormal = tmpV1.crossLocal(tmpV2);
                newNormal.normalizeLocal();

                // Dot old and new face normal
                // If < 0 then more than 90 degree difference
                if (newNormal.dot(triangle.normal) < 0.0f) {
                    // Don't do it!
                    return NEVER_COLLAPSE_COST;
                }
            }
        }
View Full Code Here

Examples of com.pogofish.jadt.parser.ParserImpl.dot()

        final ParserImpl p8 = parserImpl("/**/,");
        p8.comma();
        checkVoidCommentError("','", p8);
       
        final ParserImpl p9 = parserImpl("/**/.");
        p9.dot();
        checkVoidCommentError("'.'", p9);       
       
        final ParserImpl p10 = parserImpl("/**/double");
        checkCommentError(_DoubleType(), p10.doubleType(), "'double'", p10);
       
View Full Code Here

Examples of de.jungblut.math.DoubleVector.dot()

      final CostGradientTuple evaluateCost2 = f.evaluateCost(input);
      double f2 = evaluateCost2.getCost();
      DoubleVector df2 = evaluateCost2.getGradient();

      i = i + (length < 0 ? 1 : 0); // count epochs
      double d2 = df2.dot(s);
      // initialize point 3 equal to point 1
      double f3 = f1;
      double d3 = d1;
      double z3 = -z1;
      if (length > 0) {
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.