Package javax.vecmath

Examples of javax.vecmath.Vector3d.normalize()


      n.z);
        test_point(planes, n);

        if (delta == null) delta = new Vector3d();
        delta.sub(n, p);
        delta.normalize();
        System.err.println("p->n direction: " + delta);
        Matrix3d hMatrix = new Matrix3d();
        // check using the the javax.vecmath routine
        hMatrix.m00 = h11;
        hMatrix.m01 = h12;
View Full Code Here


/* 243 */     this.canvas.getImagePlateToVworld(motion);
/*     */
/* 250 */     motion.transform(eyePosn);
/* 251 */     motion.transform(mousePosn);
/* 252 */     mouseVec.sub(mousePosn, eyePosn);
/* 253 */     mouseVec.normalize();
/*     */
/* 261 */     this.pickRay.set(eyePosn, mouseVec);
/*     */
/* 263 */     return this.pickRay;
/*     */   }
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.