However, with motorcycles the convention is based on width - hence cylinder orientation. Therefore, a flat or v-twin with left and right cylinders is transverse but with front and rear cylinders it is longitudinal.
In the context of motorcycles, the standard orientation convention is based on the width of the engine - horizontal cylinders (left and right) result in a transverse configuration, whereas vertical cylinders (front and back) lead to a longitudinal setup.