Package javax.vecmath

Examples of javax.vecmath.Point3f.distance()


      finalOperations[0] = new SymmetryOperation(operations[0], atoms,
          atomIndex, count, true);
      Point3f atom = atoms[atomIndex];
      Point3f c = new Point3f(atom);
      finalOperations[0].transform(c);
      if (c.distance(atom) > 0.0001) // not cartesian, but this is OK here
        for (int i = 0; i < count; i++) {
          atom = atoms[atomIndex + i];
          c.set(atom);
          finalOperations[0].transform(c);
          atom.set(c);
View Full Code Here


    case point4f:
      return Measure.distanceToPlane((Point4f) x.value, pt0);
    case matrix3f:
      Point3f pt = new Point3f();
      ((Matrix3f) x.value).transform(pt);
      return pt.distance(pt0);
    case matrix4f:
      Point3f pt1 = new Point3f();
      ((Matrix4f) x.value).transform(pt1);
      return pt1.distance(pt0);
    default:
View Full Code Here

      ((Matrix3f) x.value).transform(pt);
      return pt.distance(pt0);
    case matrix4f:
      Point3f pt1 = new Point3f();
      ((Matrix4f) x.value).transform(pt1);
      return pt1.distance(pt0);
    default:
      return 0;
    }
  }
View Full Code Here

/*      */
/*  409 */     debugPrint("                                      soundPosition delta = " + xformPosition.distance(lastXformPosition));
/*      */
/*  412 */     debugPrint("                                      soundVelocity = " + soundVelocity);
/*      */
/*  414 */     debugPrint("                                      headPosition delta = " + xformCenterEar.distance(lastXformCenterEar));
/*      */
/*  417 */     debugPrint("                                      headVelocity = " + headVelocity);
/*      */
/*  420 */     if (attribs != null)
/*      */     {
View Full Code Here

/*      */
/*  409 */     debugPrint("                                      soundPosition delta = " + xformPosition.distance(lastXformPosition));
/*      */
/*  412 */     debugPrint("                                      soundVelocity = " + soundVelocity);
/*      */
/*  414 */     debugPrint("                                      headPosition delta = " + xformCenterEar.distance(lastXformCenterEar));
/*      */
/*  417 */     debugPrint("                                      headVelocity = " + headVelocity);
/*      */
/*  420 */     if (attribs != null)
/*      */     {
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.