Move functions that get values affected by horizontal/vertical direction into getter methods.