MCPcopy Create free account
hub / github.com/ColmapView/Colmapview.github.io / getAxisCycleOrder

Function getAxisCycleOrder

src/store/stores/pointPickingStore.ts:17–22  ·  view source on GitHub ↗
(coordinateSystem: AxesCoordinateSystem)

Source from the content-addressed store, hash-verified

15// Y-up systems: Y → X → Z
16// Z-up systems: Z → Y → X
17export 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)
25export function getDefaultUpAxis(coordinateSystem: AxesCoordinateSystem): TargetAxis {

Callers 2

getDefaultUpAxisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected