Files
healer-man/src/game/dungeonCoordinates.ts
2026-08-14 15:56:39 -04:00

12 lines
460 B
TypeScript

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]];
}