org.jzy3d.plot3d.transform
Class Translate

java.lang.Object
  extended by org.jzy3d.plot3d.transform.Translate

public class Translate
extends java.lang.Object

Translate is a Transformer that stores the offset required to perform the effective OpenGL translation in the ModelView Matrix.

Author:
Martin Pernollet

Constructor Summary
Translate(Coord3d shift)
          Initialize a Translate.
 
Method Summary
 Coord3d compute(Coord3d input)
          Apply the transformations to the input coordinates.
 void execute(javax.media.opengl.GL gl)
          Execute the effective GL transformation held by this Transformer.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Translate

public Translate(Coord3d shift)
Initialize a Translate.

Parameters:
shift - translation offset.
Method Detail

execute

public void execute(javax.media.opengl.GL gl)
Execute the effective GL transformation held by this Transformer.

Parameters:
gl - OpenGL context.

compute

public Coord3d compute(Coord3d input)
Apply the transformations to the input coordinates.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object