Revision 728562ae
Added by Leszek Koltunski over 3 years ago
| src/main/java/org/distorted/library/effect/MatrixEffectQuaternion.java | ||
|---|---|---|
| 33 | 33 |
private final Data4D mQuaternion; |
| 34 | 34 |
private final Data3D mCenter; |
| 35 | 35 |
|
| 36 |
private static final float[] mTmpMatrix1 = new float[16];
|
|
| 37 |
private static final float[] mTmpMatrix2 = new float[16];
|
|
| 36 |
private final float[] mTmpMatrix1 = new float[16]; |
|
| 37 |
private final float[] mTmpMatrix2 = new float[16]; |
|
| 38 | 38 |
|
| 39 | 39 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 40 | 40 |
/** |
| ... | ... | |
| 76 | 76 |
|
| 77 | 77 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| 78 | 78 |
|
| 79 |
private static void multiplyByQuat(float[] matrix, float X, float Y, float Z, float W)
|
|
| 79 |
private void multiplyByQuat(float[] matrix, float X, float Y, float Z, float W) |
|
| 80 | 80 |
{
|
| 81 | 81 |
float xx= X * X; |
| 82 | 82 |
float xy= X * Y; |
Also available in: Unified diff
Very important bugfix in the Library: MatrixEffectQuaternion cannot share the tmp static buffers!