Revision 6bb59aad
Added by Leszek Koltunski almost 7 years ago
src/main/java/org/distorted/library/effect/MatrixEffectQuaternion.java | ||
---|---|---|
30 | 30 |
|
31 | 31 |
public class MatrixEffectQuaternion extends MatrixEffect |
32 | 32 |
{ |
33 |
private static final String NAME = "QUATERNION"; |
|
33 | 34 |
private static final float[] UNITIES = new float[]{0.0f, 0.0f, 0.0f}; |
34 | 35 |
private static final int DIMENSION = 4; |
35 | 36 |
private static final boolean SUPPORTS_CENTER = true; |
36 | 37 |
private static final boolean SUPPORTS_REGION = false; |
37 | 38 |
|
38 | 39 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
39 |
|
|
40 |
/** |
|
41 |
* Rotates the Object by quaternion. |
|
42 |
* |
|
43 |
* @param quaternion The quaternion describing the rotation. |
|
44 |
* @param center Coordinates of the Point we are rotating around. |
|
45 |
*/ |
|
40 | 46 |
public MatrixEffectQuaternion(Data4D quaternion, Data3D center ) |
41 | 47 |
{ |
42 |
super(QUATERNION,UNITIES,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION); |
|
48 |
super(QUATERNION,UNITIES,DIMENSION,SUPPORTS_CENTER,SUPPORTS_REGION,NAME);
|
|
43 | 49 |
|
44 | 50 |
if( quaternion instanceof Static4D) |
45 | 51 |
{ |
Also available in: Unified diff
Progress with support for Effect classes.