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 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.
 float getAngle()
           
 Coord3d getRotate()
           
 void setAngle(float angle)
           
 void setRotate(Coord3d rotate)
           
 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.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. Warning: this method is a utility that may not be implemented.


toString

public String toString()
Overrides:
toString in class Object

getAngle

public float getAngle()

setAngle

public void setAngle(float angle)

getRotate

public Coord3d getRotate()

setRotate

public void setRotate(Coord3d rotate)


Copyright © 2013. All rights reserved.