import type { Vector3Tuple } from "./dungeonTypes"; /** The one authoritative 3.3.5 server/WoW -> Three.js coordinate transform. */ export function wowToThree(position: Vector3Tuple): Vector3Tuple { return [-position[0], position[2], position[1]]; } /** Exact inverse of {@link wowToThree}; useful for source-provenance diagnostics. */ export function threeToWow(position: Vector3Tuple): Vector3Tuple { return [-position[0], position[2], position[1]]; }