public class Rotate extends Object
Transformer that stores the angle and rotate values
required to perform the effective OpenGL rotation in the ModelView matrix.| Constructor and Description |
|---|
Rotate(double angle,
Coord3d rotate) |
Rotate(float angle,
Coord3d rotate)
Initialize a Rotation.
|
| Modifier and Type | Method and Description |
|---|---|
Coord3d |
compute(Coord3d input)
Apply the transformations to the input coordinates.
|
void |
execute(com.jogamp.opengl.GL gl)
Execute the transformation to the current GL context.
|
float |
getAngle() |
Coord3d |
getRotate() |
void |
setAngle(float angle) |
void |
setRotate(Coord3d rotate) |
String |
toString() |
public Rotate(float angle,
Coord3d rotate)
angle - rotate - public Rotate(double angle,
Coord3d rotate)
public void execute(com.jogamp.opengl.GL gl)
Transformer are usually help by an ,
the transformation will apply to this .
Computation is performed by GPU.public Coord3d compute(Coord3d input)
public float getAngle()
public void setAngle(float angle)
public Coord3d getRotate()
public void setRotate(Coord3d rotate)
Copyright © 2016. All rights reserved.