org.jzy3d.plot3d.transform
Class Rotate

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

public class Rotate
extends Object

Rotate is a Transformer that stores the angle and rotate values required to perform the effective OpenGL2 rotation in the ModelView Matrix.

Author:
Martin Pernollet

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

Constructor Detail

Rotate

public Rotate(float angle,
              Coord3d rotate)
Initialize a Rotation.

Parameters:
angle -
rotate -

Rotate

public Rotate(double angle,
              Coord3d rotate)
Method Detail

execute

public void execute(javax.media.opengl.GL2 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. Warning: this method is a utility that may not be implemented.


toString

public String toString()
Overrides:
toString in class Object