mirror of
https://github.com/bspeice/speice.io
synced 2024-12-22 16:48:10 -05:00
11 lines
264 B
TypeScript
11 lines
264 B
TypeScript
// hidden-start
|
|
import { applyCoefs, Coefs, Transform } from "../src/transform";
|
|
// hidden-end
|
|
export const transformPost = (
|
|
transform: Transform,
|
|
coefs: Coefs
|
|
): Transform =>
|
|
(x, y) => {
|
|
[x, y] = transform(x, y);
|
|
return applyCoefs(x, y, coefs);
|
|
} |