Package javax.vecmath

Examples of javax.vecmath.Vector4d.normalize()


/*  607 */     for (int i = 0; i < 6; i++)
/*  608 */       if ((enableMask & 1 << i) != 0)
/*      */       {
/*  610 */         Vector4d vec = new Vector4d(this.xformPlanes[i].x, this.xformPlanes[i].y, this.xformPlanes[i].z, this.xformPlanes[i].w);
/*      */
/*  612 */         vec.normalize();
/*  613 */         invtrans.transform(vec);
/*  614 */         update(ctx, i, true, vec.x, vec.y, vec.z, vec.w);
/*      */       }
/*      */       else {
/*  617 */         update(ctx, i, false, 0.0D, 0.0D, 0.0D, 0.0D);
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.