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 aTransformer
that 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 Coord3d
compute(Coord3d input)
Apply the transformations to the input coordinates.void
execute(IPainter painter)
produces a rotation of angle degrees around the vector (𝑥,𝑦,𝑧)float
getAngle()
Coord3d
getRotate()
void
setAngle(float angle)
void
setRotate(Coord3d rotate)
String
toString()
-
-
-
Method Detail
-
execute
public void execute(IPainter painter)
produces a rotation of angle degrees around the vector (𝑥,𝑦,𝑧)- Specified by:
execute
in interfaceTransformer
- Parameters:
painter
- TODO
-
compute
public Coord3d compute(Coord3d input)
Description copied from interface:Transformer
Apply the transformations to the input coordinates. Computation is performed by CPU.- Specified by:
compute
in interfaceTransformer
-
getAngle
public float getAngle()
-
setAngle
public void setAngle(float angle)
-
getRotate
public Coord3d getRotate()
-
setRotate
public void setRotate(Coord3d rotate)
-
-