org.jzy3d.plot3d.transform
Class Rotate

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

public class Rotate
extends java.lang.Object

Rotate is a Transformer that stores the angle and rotate values required to perform the effective OpenGL 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.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

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.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