Examples of scaleAdd()


Examples of javax.vecmath.Point3f.scaleAdd()

              .append(Escape.escape(pa1)).append(" color red");
          ptemp.set(pa1);
          ptemp.add(vtemp);
          draw1.append(drawid).append("rotLine2 ").append(Escape.escape(p0))
              .append(Escape.escape(ptemp)).append(" color red");
          pt1.scaleAdd(0.5f, vtemp, pa1);
        }

        // draw arc arrow

        ptemp.set(pt1);
View Full Code Here

Examples of javax.vecmath.Point3f.scaleAdd()

        if (iDot > dotCount)
          iDot = dotCount;
        while (--iDot >= 0)
          if (dotsConvexMaps[i].get(iDot)) {
            Point3f pt = new Point3f();
            pt.scaleAdd(atomData.atomRadius[i], Geodesic.getVertexVector(iDot), atomData.atomXyz[i]);
            points[nPoints++] = pt;
          }
      }
    currentPoints = points;
    return points;
View Full Code Here

Examples of javax.vecmath.Vector3d.scaleAdd()

    dt.sub(pt, end);
    return dt.lengthSquared();
  }

  // We projected somewhere along the segment, calculate the closest point
  dt.scaleAdd(proj / segSquared, dir, start);
  if (closest != null) closest.set(dt);

  // return the distance from the point to the closest point on the segment
  dt.sub(pt, dt);
  return dt.lengthSquared();
View Full Code Here

Examples of javax.vecmath.Vector3d.scaleAdd()

  // Project the ray onto itself
  double raySquared = dir.lengthSquared();

  // We projected somewhere along the ray, calculate the closest point
  dt.scaleAdd(proj / raySquared, dir, start);
  if (closest != null) closest.set(dt);

  // return the distance from the point to the closest point on the ray
  dt.sub(pt, dt);
  return dt.lengthSquared();
View Full Code Here

Examples of javax.vecmath.Vector3d.scaleAdd()

/* 502 */       t = 0.0D;
/* 503 */       if (rayint != null) rayint.set(rayorig);
/* 504 */       if (param != null) param[0] = t;
/*     */     }
/* 506 */     else { t /= raydir.dot(raydir);
/* 507 */       diff.scaleAdd(-t, raydir, diff);
/* 508 */       if (rayint != null) rayint.scaleAdd(t, raydir, rayorig);
/* 509 */       if (param != null) param[0] = t;
/*     */     }
/* 511 */     return diff.dot(diff);
/*     */   }
View Full Code Here

Examples of javax.vecmath.Vector3d.scaleAdd()

/* 548 */         if (param != null) param[0] = t;
/*     */       }
/*     */       else
/*     */       {
/* 551 */         t /= mDotm;
/* 552 */         diff.scaleAdd(-t, segdir, diff);
/* 553 */         if (segint != null) segint.scaleAdd(t, segdir, segstart);
/* 554 */         if (param != null) param[0] = t;
/*     */       }
/*     */     }
/* 557 */     return diff.dot(diff);
View Full Code Here

Examples of javax.vecmath.Vector3f.scaleAdd()

        continue;
      float c = partialCharges[i];
      if (c < 0) {
        nNeg++;
        cNeg += c;
        neg.scaleAdd(c, atoms[i], neg);
      } else if (c > 0) {
        nPos++;
        cPos += c;
        pos.scaleAdd(c, atoms[i], pos);
      }
View Full Code Here

Examples of javax.vecmath.Vector3f.scaleAdd()

        }
        if (v.length() == 0) {
          v.set(((Point3f)jn[4]));
          doSwitch = false;
        } else {
          v.scaleAdd(n + 1,(Point3f) getJmolAtom(sAtom.getMatchingAtom()), v);
          doSwitch = isSmilesFind || doSwitch ;
        }
        jn[pt] = new SmilesAtom(-1);
        ((Point3f) jn[pt]).set(v);
      }
View Full Code Here

Examples of javax.vecmath.Vector3f.scaleAdd()

            if (op.type == OPERATION_IMPROPER_AXIS)
              scale = -scale;
            sb.append("draw pgva").append(m).append(label).append("_").append(
                j + 1).append(" width 0.05 scale ").append(scale).append(" ").append(
                Escape.escape(v));
            v.scaleAdd(-2, op.normalOrAxis, v);
            boolean isPA = (principalAxis != null && op.index == principalAxis.index);
            sb.append(Escape.escape(v)).append(
                "\"").append(label).append(isPA ? "*" : "").append("\" color ").append(
                isPA ? "red" : op.type == OPERATION_IMPROPER_AXIS ? "blue"
                    : "yellow").append(";\n");
View Full Code Here

Examples of javax.vecmath.Vector3f.scaleAdd()

          v.set(op.normalOrAxis);
          v.add(center);
          sb.append("draw pgvp").append(m).append(j + 1).append(
              "ring width 0.05 scale ").append(scaleFactor * radius * 2).append(" arc ")
              .append(Escape.escape(v));
          v.scaleAdd(-2, op.normalOrAxis, v);
          sb.append(Escape.escape(v));
          v.x += 0.011;
          v.y += 0.012;
          v.z += 0.013;
          sb
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.