mirror of
https://github.com/bspeice/speice.io
synced 2025-12-15 09:36:14 -05:00
Post/final transform implementation
This commit is contained in:
7
blog/2024-11-15-playing-with-fire/2-transforms/post.ts
Normal file
7
blog/2024-11-15-playing-with-fire/2-transforms/post.ts
Normal file
@ -0,0 +1,7 @@
|
||||
// hidden-start
|
||||
import {Coefs} from "../src/coefs";
|
||||
import {Transform} from "../src/transform";
|
||||
import {applyCoefs} from "../src/coefs";
|
||||
// hidden-end
|
||||
export const transformPost = (transform: Transform, coefs: Coefs): Transform =>
|
||||
(x, y): [number, number] => applyCoefs(...transform(x, y), coefs)
|
||||
Reference in New Issue
Block a user