* Get current axis direction. * @param {CSS3D.Vector3} axis * @return {string} current axis direction.
(axis)
| 1290 | * @return {string} current axis direction. |
| 1291 | */ |
| 1292 | function getCurAxisDir(axis) { |
| 1293 | if (Math.abs(axis.x) > 0.00001) { |
| 1294 | return 'x'; |
| 1295 | } else if (Math.abs(axis.y) > 0.00001) { |
| 1296 | return 'y'; |
| 1297 | } else { |
| 1298 | return 'z'; |
| 1299 | } |
| 1300 | } |
| 1301 | |
| 1302 | var Face = CSS3D.Object3D.extend({ |
| 1303 | className: 'face', |