mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
feat: generalize ZY correction
This commit is contained in:
1 parent
5d733a79ef
commit
fde9319bbd
8 files changed
+38
-80
No files matched your search
@@ -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,
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user