cs567.particles
Class OrthoMap

java.lang.Object
  extended by cs567.particles.OrthoMap

public class OrthoMap
extends java.lang.Object

Simple object for setting up orthographic projection in OpenGL, and mapping mouse clicks into the unit computational cell.


Method Summary
 void apply_glOrtho(javax.media.opengl.GL gl)
           
 javax.vecmath.Point2d getPoint2d(java.awt.event.MouseEvent e)
          Get 2d coordinates in unit computation cell of e using knowledge of ortho projection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

apply_glOrtho

public void apply_glOrtho(javax.media.opengl.GL gl)

getPoint2d

public javax.vecmath.Point2d getPoint2d(java.awt.event.MouseEvent e)
Get 2d coordinates in unit computation cell of e using knowledge of ortho projection.