Initial implementation of two-way x-axis sloping surfaces. TODO: Fix inaccuracies, refactoring and commenting.