UNPKG

@tolokoban/tgd

Version:

ToloGameDev library for WebGL2

27 lines 1.08 kB
import { TgdVec2, TgdVec3, TgdVec4 } from "../../math"; import { ArrayNumber2, ArrayNumber3, ArrayNumber4 } from "../../types"; /** * Create an action that will interpolate from one vector to another. */ export declare function tgdActionCreateVec2Interpolation({ from, to, action, }: { from: ArrayNumber2 | TgdVec2; to: ArrayNumber2 | TgdVec2; action: (vec: Readonly<ArrayNumber2>) => void; }): (alpha: number) => void; /** * Create an action that will interpolate from one vector to another. */ export declare function tgdActionCreateVec3Interpolation({ from, to, action, }: { from: ArrayNumber3 | TgdVec3; to: ArrayNumber3 | TgdVec3; action: (vec: Readonly<ArrayNumber3>) => void; }): (alpha: number) => void; /** * Create an action that will interpolate from one vector to another. */ export declare function tgdActionCreateVec4Interpolation({ from, to, action, }: { from: ArrayNumber4 | TgdVec4; to: ArrayNumber4 | TgdVec4; action: (vec: Readonly<ArrayNumber4>) => void; }): (alpha: number) => void; //# sourceMappingURL=vector.d.ts.map