first attempt at solving discontinuity problem by means of quaternion hemispherization. so far, the result is both better and worse...
refactoring