Web Hosting Tomcat, Java, JSP, Servlets, J2EE, PHP, MySQL

Cheap web hosting provider

12
Nov

Black Art of Java Game Programming by Joel

Black Art of Java Game Programming by Joel Fan Sams, Macmillan Computer Publishing ISBN: 1571690433 Pub Date: 11/01/96 Previous Table of Contents Next Implementing the Polyhedron Instance The implementation (see Listing 11-12) will turn out to be simpler than you might think, but since it might contain unpleasant surprises, there are a few comments to be made. Listing 11-12 The fPolyhedronInstance import java.awt.*; /** * Class that represents an instance of a polyhedron. */ public class fPolyhedronInstance extends Object { //– the transformed vertices protected fArrayOf3dPoints transformedVertices; //– the matrix used for transformations protected fMatrix3d myTransformMatrix; //– the polyhedron protected fPolyhedron thePolyhedron; //– position in WCS protected fPoint3d myPosition; //– the angle in WCS protected fAngle3d myAngle; //– protected boolean positionIsDirty,angleIsDirty; /** * construct an instance of the supplied polyhedron. */ public fPolyhedronInstance(fPolyhedron poly){ //– the polyhedron that this instance is using thePolyhedron=poly; //– create the vertices to be used for storing transformations try{ transformedVertices=(fArrayOf3dPoints)thePolyhedron.getVertices().makeClo ne(); } catch(Exception e){e.printStackTrace();} myPosition=new fPoint3d();
Note: If you are looking for inexpensive but high quality provider to host and run your jsp application check Astra jsp hosting services

Comments are closed.

Home | About Us | Compare Plans | Standard Hosting | Business Hosting | Java Tomcat Hosting | Support | FAQ | Order Now!

Powered by Omnicus java hosting services. All rights reserved.
Entries (RSS) and Comments (RSS).