org.jzy3d.plot3d.transform
Class Rotate
- java.lang.Object
-
- org.jzy3d.plot3d.transform.Rotate
-
public class Rotate extends java.lang.ObjectRotate is aTransformerthat stores the angle and rotate values required to perform the effective OpenGL rotation in the ModelView matrix.
-
-
Constructor Summary
Constructors Constructor and Description Rotate(double angle, Coord3d rotate)Rotate(float angle, Coord3d rotate)Initialize a Rotation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Coord3dcompute(Coord3d input)Apply the transformations to the input coordinates.voidexecute(com.jogamp.opengl.GL gl)Execute the transformation to the current GL context.floatgetAngle()Coord3dgetRotate()voidsetAngle(float angle)voidsetRotate(Coord3d rotate)java.lang.StringtoString()
-
-
-
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(com.jogamp.opengl.GL gl)
Execute the transformation to the current GL context. AsTransformerare usually help by an , the transformation will apply to this . Computation is performed by GPU.
-
compute
public Coord3d compute(Coord3d input)
Apply the transformations to the input coordinates. Computation is performed by CPU.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getAngle
public float getAngle()
-
setAngle
public void setAngle(float angle)
-
getRotate
public Coord3d getRotate()
-
setRotate
public void setRotate(Coord3d rotate)
-
-
DMelt 3.0 © DataMelt by jWork.ORG