Package javax.media.j3d

Examples of javax.media.j3d.Transform3D.transform()


/*  563 */         this.xformLeftEar.z = ((float)earPosition.z);
/*  564 */         body.getRightEarPosition(earPosition);
/*  565 */         this.xformRightEar.x = ((float)earPosition.x);
/*  566 */         this.xformRightEar.y = ((float)earPosition.y);
/*  567 */         this.xformRightEar.z = ((float)earPosition.z);
/*  568 */         headToVwrld.transform(this.xformRightEar);
/*  569 */         headToVwrld.transform(this.xformLeftEar);
/*      */
/*  571 */         this.xformHeadZAxis.set(0.0F, 0.0F, -1.0F);
/*  572 */         headToVwrld.transform(this.xformHeadZAxis);
/*      */
View Full Code Here


/*  564 */         body.getRightEarPosition(earPosition);
/*  565 */         this.xformRightEar.x = ((float)earPosition.x);
/*  566 */         this.xformRightEar.y = ((float)earPosition.y);
/*  567 */         this.xformRightEar.z = ((float)earPosition.z);
/*  568 */         headToVwrld.transform(this.xformRightEar);
/*  569 */         headToVwrld.transform(this.xformLeftEar);
/*      */
/*  571 */         this.xformHeadZAxis.set(0.0F, 0.0F, -1.0F);
/*  572 */         headToVwrld.transform(this.xformHeadZAxis);
/*      */
/*  576 */         xformCenterEar.x = (this.xformLeftEar.x + (this.xformRightEar.x - this.xformLeftEar.x) * 0.5F);
 
View Full Code Here

/*  567 */         this.xformRightEar.z = ((float)earPosition.z);
/*  568 */         headToVwrld.transform(this.xformRightEar);
/*  569 */         headToVwrld.transform(this.xformLeftEar);
/*      */
/*  571 */         this.xformHeadZAxis.set(0.0F, 0.0F, -1.0F);
/*  572 */         headToVwrld.transform(this.xformHeadZAxis);
/*      */
/*  576 */         xformCenterEar.x = (this.xformLeftEar.x + (this.xformRightEar.x - this.xformLeftEar.x) * 0.5F);
/*      */
/*  578 */         xformCenterEar.y = (this.xformLeftEar.y + (this.xformRightEar.y - this.xformLeftEar.y) * 0.5F);
/*      */
View Full Code Here

/*  559 */         this.xformLeftEar.z = ((float)earPosition.z);
/*  560 */         body.getRightEarPosition(earPosition);
/*  561 */         this.xformRightEar.x = ((float)earPosition.x);
/*  562 */         this.xformRightEar.y = ((float)earPosition.y);
/*  563 */         this.xformRightEar.z = ((float)earPosition.z);
/*  564 */         headToVwrld.transform(this.xformRightEar);
/*  565 */         headToVwrld.transform(this.xformLeftEar);
/*      */
/*  567 */         this.xformHeadZAxis.set(0.0F, 0.0F, -1.0F);
/*  568 */         headToVwrld.transform(this.xformHeadZAxis);
/*      */
View Full Code Here

/*  560 */         body.getRightEarPosition(earPosition);
/*  561 */         this.xformRightEar.x = ((float)earPosition.x);
/*  562 */         this.xformRightEar.y = ((float)earPosition.y);
/*  563 */         this.xformRightEar.z = ((float)earPosition.z);
/*  564 */         headToVwrld.transform(this.xformRightEar);
/*  565 */         headToVwrld.transform(this.xformLeftEar);
/*      */
/*  567 */         this.xformHeadZAxis.set(0.0F, 0.0F, -1.0F);
/*  568 */         headToVwrld.transform(this.xformHeadZAxis);
/*      */
/*  572 */         xformCenterEar.x = (this.xformLeftEar.x + (this.xformRightEar.x - this.xformLeftEar.x) * 0.5F);
 
View Full Code Here

/*  563 */         this.xformRightEar.z = ((float)earPosition.z);
/*  564 */         headToVwrld.transform(this.xformRightEar);
/*  565 */         headToVwrld.transform(this.xformLeftEar);
/*      */
/*  567 */         this.xformHeadZAxis.set(0.0F, 0.0F, -1.0F);
/*  568 */         headToVwrld.transform(this.xformHeadZAxis);
/*      */
/*  572 */         xformCenterEar.x = (this.xformLeftEar.x + (this.xformRightEar.x - this.xformLeftEar.x) * 0.5F);
/*      */
/*  574 */         xformCenterEar.y = (this.xformLeftEar.y + (this.xformRightEar.y - this.xformLeftEar.y) * 0.5F);
/*      */
View Full Code Here

/* 114 */       capNormals[i] = new Vector3f(normal);
/* 115 */       cap0[i] = new Point3f(normal);
/* 116 */       cap0[i].scale(halfWidth);
/* 117 */       cap1[i] = new Point3f(cap0[i]);
/* 118 */       cap1[i].add(axis);
/* 119 */       t3d.transform(normal);
/*     */     }
/*     */
/* 125 */     int vertexCount = 2 + 4 * divisions;
/* 126 */     Point3f[] vertices = new Point3f[vertexCount];
/* 127 */     Vector3f[] normals = new Vector3f[vertexCount];
View Full Code Here

        Shape3D bottom = trunkCylinder.getShape(Cylinder.BOTTOM);
        BoundingBox bottomBounds = (BoundingBox) bottom.getBounds();
        Point3d lowerBottom = new Point3d();
        bottomBounds.getLower(lowerBottom);
        Point3d movedLowerBottom = new Point3d();
        transform3D.transform(lowerBottom, movedLowerBottom);
        Point3d upperBottom = new Point3d();
        bottomBounds.getUpper(upperBottom);
        Point3d movedUpperBottom = new Point3d();
        transform3D.transform(upperBottom, movedUpperBottom);
        PointTestHelper.assertPointEquals(expectedLowerBottom, lowerBottom, 0.02, 0.0001, 0.02);
View Full Code Here

        Point3d movedLowerBottom = new Point3d();
        transform3D.transform(lowerBottom, movedLowerBottom);
        Point3d upperBottom = new Point3d();
        bottomBounds.getUpper(upperBottom);
        Point3d movedUpperBottom = new Point3d();
        transform3D.transform(upperBottom, movedUpperBottom);
        PointTestHelper.assertPointEquals(expectedLowerBottom, lowerBottom, 0.02, 0.0001, 0.02);
        PointTestHelper.assertPointEquals(expectedMovedLowerBottom, movedLowerBottom, 0.02, 0.0001, 0.02);
        PointTestHelper.assertPointEquals(expectedUpperBottom, upperBottom, 0.02, 0.0001, 0.02);
        PointTestHelper.assertPointEquals(expectedMovedUpperBottom, movedUpperBottom, 0.02, 0.0001, 0.02);
View Full Code Here

        Shape3D top = trunkCylinder.getShape(Cylinder.TOP);
        BoundingBox topBounds = (BoundingBox) top.getBounds();
        Point3d lowerTop = new Point3d();
        topBounds.getLower(lowerTop);
        Point3d movedLowerTop = new Point3d();
        transform3D.transform(lowerTop, movedLowerTop);
        Point3d upperTop = new Point3d();
        topBounds.getUpper(upperTop);
        Point3d movedUpperTop = new Point3d();
        transform3D.transform(upperTop, movedUpperTop);
        PointTestHelper.assertPointEquals(expectedLowerTop, lowerTop, 0.02, 0.0001, 0.02);
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.