org.jzy3d.plot3d.transform
Class Translate
- java.lang.Object
-
- org.jzy3d.plot3d.transform.Translate
-
public class Translate extends java.lang.ObjectTranslate is aTransformerthat stores the offset required to perform the effective OpenGL2 translation in the ModelView Matrix.
-
-
Constructor Summary
Constructors Constructor and Description Translate(Coord3d shift)Initialize a Translate.
-
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.java.lang.StringtoString()
-
-
-
Constructor Detail
-
Translate
public Translate(Coord3d shift)
Initialize a Translate.- Parameters:
shift- translation offset.
-
-
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
-
-
DMelt 3.0 © DataMelt by jWork.ORG