Revision da9b3f07
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/effect/MatrixEffectRotate.java | ||
---|---|---|
33 | 33 |
|
34 | 34 |
public class MatrixEffectRotate extends MatrixEffect |
35 | 35 |
{ |
36 |
private static final String NAME = "ROTATE"; |
|
37 |
private static final float[] UNITIES = new float[]{0.0f}; |
|
38 |
private static final int DIMENSION = 4; |
|
36 |
private static final float[] UNITIES = new float[]{0.0f}; |
|
37 |
private static final int DIMENSION = 4; |
|
39 | 38 |
private static final boolean SUPPORTS_CENTER = true; |
40 | 39 |
private static final boolean SUPPORTS_REGION = false; |
41 | 40 |
|
... | ... | |
50 | 49 |
*/ |
51 | 50 |
public MatrixEffectRotate(Data1D angle, Static3D axis, Data3D center) |
52 | 51 |
{ |
53 |
super(ROTATE,UNITIES,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION,NAME);
|
|
52 |
super(EffectName.ROTATE,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION,UNITIES);
|
|
54 | 53 |
|
55 | 54 |
if( angle instanceof Static1D ) |
56 | 55 |
{ |
... | ... | |
83 | 82 |
*/ |
84 | 83 |
public MatrixEffectRotate(Data4D angleaxis, Data3D center) |
85 | 84 |
{ |
86 |
super(ROTATE,UNITIES,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION,NAME);
|
|
85 |
super(EffectName.ROTATE,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION,UNITIES);
|
|
87 | 86 |
|
88 | 87 |
if( angleaxis instanceof Static4D) |
89 | 88 |
{ |
Also available in: Unified diff
Progress with support for Effect classes.
The library compiles now!