next-flow-interface
Version:
Interface package for NEXT FlOW. You can use this package to build your own plugin that can control anything.
46 lines • 2.42 kB
TypeScript
import { Quaternion, Vector3 } from '@babylonjs/core';
import { V2, V3, V4 } from '../type/general/vector.type';
export declare function xyToArray(data: V2 | null | undefined, round?: number, defaultValue?: [number, number]): [number, number];
export declare function xyzToArray(data: V3 | null | undefined, round?: number, defaultValue?: [number, number, number]): [number, number, number];
export declare function xyzwToArray(data: V4 | null | undefined, round?: number, defaultValue?: [number, number, number, number]): [number, number, number, number];
export declare function scaleV3(ratio: number, v: V3): V3;
export declare function radiansToDegrees(v: V3): V3;
export declare function degreeToRadians(v: V3): V3;
export declare function radiansToQuaternion(v: V3): Quaternion;
export declare function degreesToQuaternion(v: V3): Quaternion;
export declare function toVector3(v: V3): Vector3;
export declare function fromVector3(v: Vector3): V3;
export declare function withRound(v: V3, n?: number): V3;
export declare function isFiniteVector(v: V3): boolean;
export declare function noZero(v: V3): boolean;
export declare function scaleV4(ratio: number, v: V4): V4;
export declare function toQuaternionVector(v: V4): Quaternion;
export declare function toEulerRadians(v: V4): V3;
export declare function toEulerDegrees(v: V4): V3;
export declare function toArray(v: V3 | V4): number[];
export declare function fromQuaternion(q: Quaternion): V4;
export declare function toArrayWithRound4(v: V3 | V4, n?: number): number[];
declare const VectorUtils: {
xyToArray: typeof xyToArray;
xyzToArray: typeof xyzToArray;
xyzwToArray: typeof xyzwToArray;
scaleV3: typeof scaleV3;
radiansToDegrees: typeof radiansToDegrees;
degreeToRadians: typeof degreeToRadians;
radiansToQuaternion: typeof radiansToQuaternion;
degreesToQuaternion: typeof degreesToQuaternion;
toVector3: typeof toVector3;
fromVector3: typeof fromVector3;
withRound: typeof withRound;
isFiniteVector: typeof isFiniteVector;
noZero: typeof noZero;
scaleV4: typeof scaleV4;
toQuaternionVector: typeof toQuaternionVector;
toEulerRadians: typeof toEulerRadians;
toEulerDegrees: typeof toEulerDegrees;
toArray: typeof toArray;
fromQuaternion: typeof fromQuaternion;
toArrayWithRound4: typeof toArrayWithRound4;
};
export default VectorUtils;
//# sourceMappingURL=vector-utils.d.ts.map