feat: generalize ZY correction

This commit is contained in:
TrèsAbhi committed 2024-07-24 20:27:16 -05:00
1 parent 5d733a79ef
commit fde9319bbd
8 files changed
+38 -80

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import { Vector3, Vector3Tuple } from 'three';
import { I_HAT } from '../../constants/axis';
export function correctZYTuple(tuple: Vector3Tuple) {
return new Vector3(tuple[0], tuple[1], -tuple[2]).applyAxisAngle(
I_HAT,
Math.PI / 2,
);
}