(coordinateSystem: AxesCoordinateSystem)
| 15 | // Y-up systems: Y → X → Z |
| 16 | // Z-up systems: Z → Y → X |
| 17 | export function getAxisCycleOrder(coordinateSystem: AxesCoordinateSystem): TargetAxis[] { |
| 18 | if (coordinateSystem === 'blender' || coordinateSystem === 'unreal') { |
| 19 | return ['Z', 'Y', 'X']; |
| 20 | } |
| 21 | return ['Y', 'X', 'Z']; |
| 22 | } |
| 23 | |
| 24 | // Get the default "up" axis for a coordinate system (first in cycle order) |
| 25 | export function getDefaultUpAxis(coordinateSystem: AxesCoordinateSystem): TargetAxis { |
no outgoing calls
no test coverage detected