org.jzy3d.plot3d.transform
Class Scale

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

public class Scale
extends java.lang.Object

Scale is a Transformer that stores the scaling factor required to perform the effective OpenGL scaling in the ModelView Matrix.

Author:
Martin Pernollet

Constructor Summary
Scale(Coord3d scale)
          Initialize a Scale.
 
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

Scale

public Scale(Coord3d scale)
Initialize a Scale.

Parameters:
scale - scaling factor.
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