Examples of Point3d


Examples of javax.vecmath.Point3d

    boolean intersect(Bounds targetBound) {
  Point3d[] points = new Point3d[4];
  int i = ((vertexFormat & GeometryArray.BY_REFERENCE) == 0 ?
     initialVertexIndex : initialCoordIndex);

  points[0] = new Point3d();
  points[1] = new Point3d();
  points[2] = new Point3d();
  points[3] = new Point3d();

  switch(targetBound.getPickType()) {
  case PickShape.PICKBOUNDINGBOX:
      BoundingBox box = (BoundingBox) targetBound;
View Full Code Here

Examples of javax.vecmath.Point3d

    @Override
    void computeCentroid() {
  int i = ((vertexFormat & GeometryArray.BY_REFERENCE) == 0 ?
     initialVertexIndex : initialCoordIndex);

  Point3d pnt0 = new Point3d();
  Point3d pnt1 = new Point3d();
  Point3d pnt2 = new Point3d();
  Point3d pnt3 = new Point3d();
  Vector3d vec = new Vector3d();
  Vector3d normal = new Vector3d();
  Vector3d tmpvec = new Vector3d();

  double area;
View Full Code Here

Examples of javax.vecmath.Point3d

     */
    public void getSensorHotspotInVworld(Sensor sensor,
           Point3f position) {

        Transform3D sensorToVworld = new Transform3D();
        Point3d hotspot3d = new Point3d();

  getSensorToVworld(sensor, sensorToVworld);
        sensor.getHotspot(hotspot3d);
        position.set(hotspot3d);
        sensorToVworld.transform(position);
View Full Code Here

Examples of javax.vecmath.Point3d

    planes[i] = new Vector4d(polytope.planes[i]);
    mag[i] = polytope.mag[i];
    pDotN[i] = polytope.pDotN[i];
      }
      for(i=0;i<verts.length;i++) {
    verts[i] = new Point3d(polytope.verts[i]);
      }
      centroid = polytope.centroid;

  } else {
      throw new IllegalArgumentException(J3dI18N.getString("BoundingPolytope0"));
View Full Code Here

Examples of javax.vecmath.Point3d

    planes[i] = new Vector4d(polytope.planes[i]);
    pDotN[i] = polytope.pDotN[i];
    mag[i] = polytope.mag[i];
      }
      for(i=0;i<verts.length;i++) {
    verts[i] = new Point3d(polytope.verts[i]);
      }
      centroid = polytope.centroid;
  } else {
      throw new IllegalArgumentException(J3dI18N.getString("BoundingPolytope1"));
  }
View Full Code Here

Examples of javax.vecmath.Point3d

    mag[i] = polytope.mag[i];
      }
      nVerts = polytope.nVerts;
      verts  = new Point3d[nVerts];
      for (k=0; k<nVerts; k++) {
    verts[k] = new Point3d(polytope.verts[k]);
      }

      boundsIsEmpty = boundsObject.boundsIsEmpty;
      boundsIsInfinite = boundsObject.boundsIsInfinite;
View Full Code Here

Examples of javax.vecmath.Point3d

            }
  } else if( boundsObject  instanceof BoundingBox){
      BoundingBox b = (BoundingBox)boundsObject;
      if( !allocBoxVerts){
    boxVerts = new Point3d[8];
    for(int j=0;j<8;j++)boxVerts[j] = new Point3d();
    allocBoxVerts = true;
      }
      boxVerts[0].set(b.lower.x, b.lower.y, b.lower.z );
      boxVerts[1].set(b.lower.x, b.upper.y, b.lower.z );
      boxVerts[2].set(b.upper.x, b.lower.y, b.lower.z );
View Full Code Here

Examples of javax.vecmath.Point3d

    }
      } else if( boundsObjects[i].boundId == BOUNDING_BOX){
    BoundingBox b = (BoundingBox)boundsObjects[i];
    if( !allocBoxVerts){
        boxVerts = new Point3d[8];
        for(int j=0;j<8;j++)boxVerts[j] = new Point3d();
        allocBoxVerts = true;
    }
    boxVerts[0].set(b.lower.x, b.lower.y, b.lower.z );
    boxVerts[1].set(b.lower.x, b.upper.y, b.lower.z );
    boxVerts[2].set(b.upper.x, b.lower.y, b.lower.z );
View Full Code Here

Examples of javax.vecmath.Point3d

      planes = new Vector4d[6];
      mag = new double[planes.length];
      pDotN  = new double[planes.length];
      nVerts = 1;
      verts = new Point3d[nVerts];
      verts[0] = new Point3d( point.x, point.y, point.z);

      for(i=0;i<planes.length;i++) {
    pDotN[i] 0.0;
      }
      planes[0] = new Vector4d( 1.0, 0.0, 0.0, -point.x );
View Full Code Here

Examples of javax.vecmath.Point3d

      planes = new Vector4d[6];
      mag = new double[planes.length];
      pDotN  = new double[planes.length];
      nVerts = points.length;
      verts = new Point3d[nVerts];
      verts[0] = new Point3d( points[0].x, points[0].y, points[0].z);

      for(i=0;i<planes.length;i++) {
    pDotN[i] 0.0;
      }
      planes[0] = new Vector4d( 1.0, 0.0, 0.0, -points[0].x );
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.