Package org.jzy3d.plot3d.transform
Class Scale
- java.lang.Object
-
- org.jzy3d.plot3d.transform.Scale
-
- All Implemented Interfaces:
Transformer
public class Scale extends Object implements Transformer
Scale is aTransformerthat stores the scaling factor required to perform the effective OpenGL2 scaling in the ModelView Matrix.- Author:
- Martin Pernollet
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Coord3dcompute(Coord3d input)Apply the transformations to the input coordinates.voidexecute(IPainter painter)Execute the transformation to the current GL context.StringtoString()
-
-
-
Constructor Detail
-
Scale
public Scale(Coord3d scale)
Initialize a Scale.- Parameters:
scale- scaling factor.
-
-
Method Detail
-
execute
public void execute(IPainter painter)
Description copied from interface:TransformerExecute the transformation to the current GL context. AsTransformerare usually help by an {@ AbstractDrawable}, the transformation will apply to this {@ AbstractDrawable}. Computation is performed by GPU.- Specified by:
executein interfaceTransformer- Parameters:
painter- TODO
-
compute
public Coord3d compute(Coord3d input)
Description copied from interface:TransformerApply the transformations to the input coordinates. Computation is performed by CPU.- Specified by:
computein interfaceTransformer
-
-