arx-convert
Version:
Converts various Arx Fatalis formats to JSON or YAML and back
29 lines (28 loc) • 681 B
TypeScript
/**
* @see https://github.com/arx/ArxLibertatis/blob/1.2.1/src/graphics/GraphicsFormat.h#L48
*/
export type ArxVector3 = {
x: number;
y: number;
z: number;
};
/**
* @see https://github.com/arx/ArxLibertatis/blob/1.2.1/src/graphics/GraphicsFormat.h#L65
*/
export type ArxRotation = {
a: number;
b: number;
g: number;
};
/**
* @see https://github.com/arx/ArxLibertatis/blob/1.2.1/src/animation/AnimationFormat.h#L63
*/
export type ArxQuaternion = {
x: number;
y: number;
z: number;
w: number;
};
export type DoubleOf<T> = [x: T, y: T];
export type TripleOf<T> = [x: T, y: T, z: T];
export type QuadrupleOf<T> = [x: T, y: T, z: T, w: T];