Revision df781f1d
Added by Leszek Koltunski about 2 years ago
src/main/java/org/distorted/objectlib/helpers/FactoryCubit.java | ||
---|---|---|
950 | 950 |
mOldFaceTransf.clear(); |
951 | 951 |
} |
952 | 952 |
|
953 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
954 |
// This is for FactoryBandaged3x3Cubit. We need to know which direction each face faces. |
|
955 |
// This assumes the factory has just been cleared and 'createNewFaceTransform' has just |
|
956 |
// been called. |
|
957 |
|
|
958 |
public Static4D getQuaternion(int face) |
|
959 |
{ |
|
960 |
FaceTransform ft = mNewFaceTransf.get(face); |
|
961 |
return ft!=null ? new Static4D(ft.qx,ft.qy,ft.qz,ft.qw) : null; |
|
962 |
} |
|
963 |
|
|
953 | 964 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
954 | 965 |
|
955 | 966 |
public void createNewFaceTransform(final ObjectShape shape, int[] outer) |
Also available in: Unified diff
BandagedCreator: colorful cube.