Package javax.vecmath

Examples of javax.vecmath.Point4f


      throws ScriptException {
    Object data = null;
    if (sb != null)
      sb.append(" ").append(getToken(i).value).append(" ");
    int tok = tokAt(i + 1);
    Point4f plane = null;
    switch (tok) {
    case Token.within:
      i++;
      data = getPointArray(++i, 4);
      break;
View Full Code Here


        boolean isInline = name.equals("inline");
        vxy.add(name); // (0) = name
        Point3f pt3 = getPoint3f(i, false);
        sbCommand.append(" ").append(Escape.escape(pt3));
        vxy.add(pt3); // (1) = {origin}
        Point4f pt4;
        ptX = ++iToken;
        vxy.add(pt4 = getPoint4f(ptX)); // (2) = {ni ix iy iz}
        sbCommand.append(" ").append(Escape.escape(pt4));
        nX = (int) pt4.x;
        ptY = ++iToken;
View Full Code Here

        if (Float.isNaN(params.scale3d))
          params.scale3d = 0;
      } catch (Exception e) {
        Logger
            .error("Error reading 4 floats for PLANE definition -- setting to 0 0 1 0  (z=0)");
        params.thePlane = new Point4f(0, 0, 1, 0);
      }
      surfaceDataCount = 0;
      edgeDataCount = 0;
    } else {
      params.thePlane = null;
View Full Code Here

    float cutoff = Float.NaN;
    boolean isPositiveOnly = false;

    String phase = null;
    Point4f plane = null;

    String colorScheme = null;
    boolean bicolor = false;
    boolean reverseColor = false;
    float min = Float.NaN;
View Full Code Here

    }
  }
 
  static Point4f getPlane(String str) {
    if (str.equalsIgnoreCase("xy"))
      return new Point4f(0, 0, 1, 0);
    if (str.equalsIgnoreCase("xz"))
      return new Point4f(0, 1, 0, 0);
    if (str.equalsIgnoreCase("yz"))
      return new Point4f(1, 0, 0, 0);
    if (str.indexOf("x=") == 0) {
      return new Point4f(1, 0, 0, -Parser.parseFloat(str.substring(2)));
    }
    if (str.indexOf("y=") == 0) {
      return new Point4f(0, 1, 0, -Parser.parseFloat(str.substring(2)));
    }
    if (str.indexOf("z=") == 0) {
      return new Point4f(0, 0, 1, -Parser.parseFloat(str.substring(2)));
    }
    if (str.indexOf("{") == 0) {
      str = str.replace(',', ' ');
      int[] next = new int[1];
      return new Point4f(Parser.parseFloat(str, next), Parser.parseFloat(str,
          next), Parser.parseFloat(str, next), Parser.parseFloat(str, next));
    }
    return null;
  }
View Full Code Here

  public static Point4f getPlaneThroughPoints(Point3f pointA,
                                              Point3f pointB,
                                              Point3f pointC, Vector3f vNorm,
                                              Vector3f vAB, Vector3f vAC) {
    float w = getNormalThroughPoints(pointA, pointB, pointC, vNorm, vAB, vAC);
    return new Point4f(vNorm.x, vNorm.y, vNorm.z, w);
  }
View Full Code Here

    float w = getNormalThroughPoints(pointA, pointB, pointC, vNorm, vAB, vAC);
    return new Point4f(vNorm.x, vNorm.y, vNorm.z, w);
  }
 
  public static Point4f getPlaneThroughPoint(Point3f pt, Vector3f normal) {
    return new Point4f(normal.x, normal.y, normal.z, -normal.dot(new Vector3f(pt)));
  }
View Full Code Here

    N[3][3] = -Sxx - Syy + Szz;

    Eigen eigen = new Eigen(N);

    float[] v = eigen.getEigenvectorsFloatTransposed()[3];
    q = new Quaternion(new Point4f(v[1], v[2], v[3], v[0]));
    retStddev[1] = getRmsd(centerAndPoints, q);
    // System.out.println("Measure" + q.getInfo());
    return q;
  }
View Full Code Here

      boolean isInA = bsA.get(myN3.index);
      if (!isInA && !bsB.get(myN3.index))
        continue;
      Atom myN1 = myNucleotide.getN1();
      Atom myN9 = myNucleotide.getN0();
      Point4f plane = Measure.getPlaneThroughPoints(myN3, myN1, myN9, vNorm,
          vAB, vAC);
      Atom bestN3 = null;
      float minDist2 = 25;
      NucleicMonomer bestNucleotide = null;
      for (int j = other.monomerCount; --j >= 0;) {
View Full Code Here

    }

    if ("functionXY" == propertyName) {
      params.setFunctionXY((List) value);
      if (params.isContoured)
        volumeData.setPlaneParameters(new Point4f(0, 0, 1, 0)); // xy plane
                                                                // through
                                                                // origin
      if (((String) params.functionXYinfo.get(0)).indexOf("_xyz") >= 0)
        getFunctionZfromXY();
      processState();
View Full Code Here

TOP

Related Classes of javax.vecmath.Point4f

Copyright © 2018 www.massapicom. 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.