Package org.jzy3d.plot3d.transform
Class Rotate
- java.lang.Object
-
- org.jzy3d.plot3d.transform.Rotate
-
- All Implemented Interfaces:
Transformer
public class Rotate extends Object implements Transformer
Rotate is aTransformerthat stores the angle and rotate values required to perform the effective OpenGL rotation 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)produces a rotation of angle degrees around the vector (𝑥,𝑦,𝑧)floatgetAngle()Coord3dgetRotate()voidsetAngle(float angle)voidsetRotate(Coord3d rotate)StringtoString()
-
-
-
Method Detail
-
execute
public void execute(IPainter painter)
produces a rotation of angle degrees around the vector (𝑥,𝑦,𝑧)- 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
-
getAngle
public float getAngle()
-
setAngle
public void setAngle(float angle)
-
getRotate
public Coord3d getRotate()
-
setRotate
public void setRotate(Coord3d rotate)
-
-