Package javax.vecmath

Examples of javax.vecmath.Point4d


/*     */
/*  81 */     for (i = 0; i < 6; i++) {
/*  82 */       this.clipPlanes[i] = new Vector4d(planes[i]);
/*     */     }
/*  84 */     for (i = 0; i < 12; i++) {
/*  85 */       this.xEdges[i] = new Point4d();
/*  86 */       this.yEdges[i] = new Point4d();
/*  87 */       this.zEdges[i] = new Point4d();
/*     */     }
/*  89 */     computeValues(this.clipPlanes);
/*     */   }
View Full Code Here


/*     */     }
/* 113 */     for (i = 0; i < 6; i++) {
/* 114 */       this.clipPlanes[i] = new Vector4d();
/*     */     }
/* 116 */     for (i = 0; i < 12; i++) {
/* 117 */       this.xEdges[i] = new Point4d();
/* 118 */       this.yEdges[i] = new Point4d();
/* 119 */       this.zEdges[i] = new Point4d();
/*     */     }
/*     */   }
View Full Code Here

/*  62 */     this.radius = radius;
/*     */   }
/*     */
/*     */   final boolean intersect(Bounds bounds, Point4d pickPos)
/*     */   {
/*  73 */     Point4d iPnt = new Point4d();
/*     */
/*  78 */     if ((bounds instanceof BoundingSphere)) {
/*  79 */       Point3d sphCenter = ((BoundingSphere)bounds).getCenter();
/*  80 */       double sphRadius = ((BoundingSphere)bounds).getRadius();
/*  81 */       double sqDist = Distance.pointToRay(sphCenter, this.origin, this.direction);
View Full Code Here

/*  60 */     this.spreadAngle = spreadAngle;
/*     */   }
/*     */
/*     */   final boolean intersect(Bounds bounds, Point4d pickPos)
/*     */   {
/*  72 */     Point4d iPnt = new Point4d();
/*  73 */     Vector3d vector = new Vector3d();
/*     */
/*  76 */     Point3d rayPt = new Point3d();
/*     */
/*  81 */     if ((bounds instanceof BoundingSphere)) {
View Full Code Here

/* 2006 */       this.leftFrustumPlanes[i] = new Vector4d();
/* 2007 */       this.rightFrustumPlanes[i] = new Vector4d();
/*      */     }
/*      */
/* 2010 */     for (i = 0; i < this.leftFrustumPoints.length; i++) {
/* 2011 */       this.leftFrustumPoints[i] = new Point4d();
/* 2012 */       this.rightFrustumPoints[i] = new Point4d();
/*      */     }
/*      */
/* 2016 */     if (canvas != null) {
/* 2017 */       this.leftEyeInImagePlate.set(canvas.leftManualEyeInImagePlate);
/* 2018 */       this.rightEyeInImagePlate.set(canvas.rightManualEyeInImagePlate);
View Full Code Here

/* 565 */     return nodes;
/*     */   }
/*     */
/*     */   private static GeometryAtom selectClosest(GeometryAtom[] geomAtoms, PickShape shape)
/*     */   {
/* 574 */     Point4d pickPos = new Point4d();
/* 575 */     GeometryAtom closestAtom = geomAtoms[0];
/* 576 */     shape.intersect(closestAtom.source.vwcBounds, pickPos);
/* 577 */     double distance = pickPos.w;
/*     */
/* 579 */     for (int i = 1; i < geomAtoms.length; i++) {
View Full Code Here

/*     */   }
/*     */
/*     */   private static void sortGeomAtoms(GeometryAtom[] geomAtoms, PickShape shape)
/*     */   {
/* 596 */     double[] distance = new double[geomAtoms.length];
/* 597 */     Point4d pickPos = new Point4d();
/*     */
/* 599 */     for (int i = 0; i < geomAtoms.length; i++) {
/* 600 */       shape.intersect(geomAtoms[i].source.vwcBounds, pickPos);
/* 601 */       distance[i] = pickPos.w;
/*     */     }
View Full Code Here

/*       */
/*       */   boolean intersectBoundingPolytope(Point3d[] coordinates, BoundingPolytope polytope, double[] dist, Point3d iPnt)
/*       */   {
/*  5870 */     boolean debug = false;
/*       */
/*  5872 */     Point4d tP4d = new Point4d();
/*       */
/*  5875 */     double distanceSign = -1.0D;
/*       */
/*  5877 */     if (coordinates.length == 2)
/*       */     {
View Full Code Here

/*  84 */     this.direction.z = (this.end.z - this.origin.z);
/*     */   }
/*     */
/*     */   final boolean intersect(Bounds bounds, Point4d pickPos)
/*     */   {
/*  95 */     Point4d iPnt = new Point4d();
/*  96 */     Vector3d vector = new Vector3d();
/*  97 */     Point3d rayPt = new Point3d();
/*     */
/* 105 */     if ((bounds instanceof BoundingSphere)) {
/* 106 */       Point3d sphCenter = ((BoundingSphere)bounds).getCenter();
View Full Code Here

/*  84 */     end.set(this.end);
/*     */   }
/*     */
/*     */   final boolean intersect(Bounds bounds, Point4d pickPos)
/*     */   {
/*  95 */     Point4d iPnt = new Point4d();
/*     */
/* 100 */     if ((bounds instanceof BoundingSphere)) {
/* 101 */       Point3d sphCenter = ((BoundingSphere)bounds).getCenter();
/* 102 */       double sphRadius = ((BoundingSphere)bounds).getRadius();
/* 103 */       double sqDist = Distance.pointToSegment(sphCenter, this.origin, this.end);
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.