Package javax.vecmath

Examples of javax.vecmath.Point4d


         NodeRetained.LAST_LOCAL_TO_VWORLD]];


        Point3d clipCoord3 = new Point3d();
        clipCoord3.set(objCoord);
        Point4d clipCoord4 = new Point4d();

        // Transform point from local coord. to clipping coord.
        lvw.transform(clipCoord3);
        canvas.vworldToEc.transform(clipCoord3);
        canvas.projTrans.transform(clipCoord3, clipCoord4);
View Full Code Here


      leftFrustumPlanes[i] = new Vector4d();
      rightFrustumPlanes[i] = new Vector4d();
  }

  for (i = 0; i < leftFrustumPoints.length; i++) {
      leftFrustumPoints[i] = new Point4d();
      rightFrustumPoints[i] = new Point4d();
  }

       // canvas is null in Renderer copyOfCvCache
  if (canvas != null) {
      leftEyeInImagePlate.set(canvas.leftManualEyeInImagePlate);
View Full Code Here

     */
    static void sortGeomAtoms(GeometryAtom geomAtoms[],
              PickShape shape) {

  final double distance[] = new double[geomAtoms.length];
  Point4d pickPos = new Point4d();

  for (int i=0; i < geomAtoms.length; i++) {
      shape.intersect(geomAtoms[i].source.vwcBounds, pickPos);
      distance[i] = pickPos.w;
  }
View Full Code Here

     * method. Provided for compatibility).
     */
    @Override
    final boolean intersect(Bounds bounds, Point4d pickPos) {

  Point4d iPnt = new Point4d();
  Vector3d vector = new Vector3d();
  double distance;
  double radius;
  Point3d rayPt = new Point3d();

View Full Code Here

     * @param pickPos the location of the point of intersection (not used for
     * method. Provided for compatibility).
     */
    @Override
    final boolean intersect(Bounds bounds, Point4d pickPos) {
  Point4d iPnt = new Point4d();

  //
  // ================ BOUNDING SPHERE ================
  //
  if (bounds instanceof BoundingSphere) {
View Full Code Here

     * @param pickPos the location of the point of intersection (not used for
     * method. Provided for compatibility).
     */
    @Override
    final boolean intersect(Bounds bounds, Point4d pickPos) {
  Point4d iPnt = new Point4d();

  //
  // ================ BOUNDING SPHERE ================
  //
  if (bounds instanceof BoundingSphere) {
View Full Code Here

     * @param pickPos the location of the point of intersection (not used for
     * method. Provided for compatibility).
     */
    @Override
    final boolean intersect(Bounds bounds, Point4d pickPos) {
  Point4d iPnt = new Point4d();
  Vector3d vector = new Vector3d();
  Point3d rayPt = new Point3d();

  double distance;
  double radius;
View Full Code Here

/* 222 */       if (this.elements.size() == 4) {
/* 223 */         if ((!(this.elements.get(1) instanceof Double)) || (!(this.elements.get(2) instanceof Double)) || (!(this.elements.get(3) instanceof Double)))
/*     */         {
/* 226 */           syntaxError(st, file, "All elements must be numbers");
/*     */         }
/* 228 */         return new Point4d(((Double)this.elements.get(0)).doubleValue(), ((Double)this.elements.get(1)).doubleValue(), ((Double)this.elements.get(2)).doubleValue(), ((Double)this.elements.get(3)).doubleValue());
/*     */       }
/*     */
/* 235 */       syntaxError(st, file, "Too many vector elements");
/*     */     }
/*     */
View Full Code Here

/*      */   {
/* 1806 */     boolean debug = false;
/*      */
/* 1809 */     double distanceSign = -1.0D;
/*      */
/* 1811 */     Point4d tP4d = new Point4d();
/*      */
/* 1813 */     Vector4d[] planes = new Vector4d[polytope.getNumPlanes()];
/* 1814 */     polytope.getPlanes(planes);
/*      */
/* 1816 */     if (coordinates.length == 2)
View Full Code Here

/*      */         }
/*      */
/*      */       }
/*      */
/* 1805 */       for (i = frustum.nxEdges - 1; i >= 0; i--) {
/* 1806 */         Point4d edge = frustum.xEdges[frustum.xEdgeList[i]];
/* 1807 */         if ((this.upper.y * edge.y + this.upper.z * edge.z + edge.w < 1.0E-008D) || (this.upper.y * edge.y + this.lower.z * edge.z + edge.w < 1.0E-008D) || (this.lower.y * edge.y + this.upper.z * edge.z + edge.w < 1.0E-008D) || (this.lower.y * edge.y + this.lower.z * edge.z + edge.w < 1.0E-008D))
/*      */         {
/*      */           break;
/*      */         }
/*      */
/*      */       }
/*      */
/* 1819 */       if (i < 0) {
/* 1820 */         return false;
/*      */       }
/*      */
/* 1825 */       for (i = frustum.nyEdges - 1; i >= 0; i--) {
/* 1826 */         Point4d edge = frustum.yEdges[frustum.yEdgeList[i]];
/* 1827 */         if ((this.upper.x * edge.x + this.upper.z * edge.z + edge.w < 1.0E-008D) || (this.upper.x * edge.x + this.lower.z * edge.z + edge.w < 1.0E-008D) || (this.lower.x * edge.x + this.upper.z * edge.z + edge.w < 1.0E-008D) || (this.lower.x * edge.x + this.lower.z * edge.z + edge.w < 1.0E-008D))
/*      */         {
/*      */           break;
/*      */         }
/*      */
/*      */       }
/*      */
/* 1838 */       if (i < 0) {
/* 1839 */         return false;
/*      */       }
/*      */
/* 1843 */       for (i = frustum.nzEdges - 1; i >= 0; i--) {
/* 1844 */         Point4d edge = frustum.zEdges[frustum.zEdgeList[i]];
/* 1845 */         if ((this.upper.y * edge.y + this.upper.z * edge.z + edge.w < 1.0E-008D) || (this.upper.y * edge.y + this.lower.z * edge.z + edge.w < 1.0E-008D) || (this.lower.y * edge.y + this.upper.z * edge.z + edge.w < 1.0E-008D) || (this.lower.y * edge.y + this.lower.z * edge.z + edge.w < 1.0E-008D))
/*      */         {
/*      */           break;
/*      */         }
/*      */
View Full Code Here

TOP

Related Classes of javax.vecmath.Point4d

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.