Revision 9a7e8b98
Added by Leszek Koltunski about 1 year ago
src/main/java/org/distorted/objectlib/touchcontrol/TouchControlIcosahedron.java | ||
---|---|---|
160 | 160 |
if( e1 && e2 ) return 0; |
161 | 161 |
if( !e1 && e0 ) return 1; |
162 | 162 |
if( !e0 &&!e2 ) return 2; |
163 |
return 0; |
|
163 | 164 |
|
164 | 165 |
case TYPE_SPLIT_CORNER: float y2 = (isFaceInverted(face) ? touchPoint[1] : -touchPoint[1]); |
165 | 166 |
float x2 = touchPoint[0]; |
... | ... | |
171 | 172 |
if( c0 && c2 ) return 0; |
172 | 173 |
if( !c1 &&!c2 ) return 1; |
173 | 174 |
if( !c0 && c1 ) return 2; |
175 |
return 0; |
|
176 |
|
|
177 |
case TYPE_SPLIT_EDGE_COIN: // not supported |
|
174 | 178 |
} |
175 | 179 |
|
176 | 180 |
return 0; |
Also available in: Unified diff
new SPLIT type: type EDGE_COIN (will be used in Coin Tetrahedron).
Only supported in Tetrahedrons for now.