Converts the current Dir8 value to the corresponding DirYZ value based on the given DirRotate direction.
The toDirYZ function maps each Dir8 value to a base DirYZ value and adjusts the mapping based on the specified rotation direction.
Return
The corresponding DirYZ value.