Revision 4946b635
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/main/RubikSurfaceView.java | ||
---|---|---|
394 | 394 |
|
395 | 395 |
Static4D touchPoint2 = new Static4D(x, y, 0, 0); |
396 | 396 |
Static4D rotatedTouchPoint2= QuatHelper.rotateVectorByInvertedQuat(touchPoint2, mQuat); |
397 |
Static2D res = mMovement.newRotation(numLayers,rotatedTouchPoint2,object.getObjectRatio());
|
|
397 |
Static2D res = mMovement.newRotation(rotatedTouchPoint2,object.getObjectRatio()); |
|
398 | 398 |
|
399 | 399 |
mCurrentAxis = (int)res.get0(); |
400 | 400 |
mCurrentRow = (int)res.get1(); |
Also available in: Unified diff
Major abstraction - automatically compute the 'computeRowFromOffset()' function from CUTS.
Still one thing left: it appears like the CUTS of Mega/Kilominxes are not correct.