mirror of
https://github.com/bspeice/speice.io
synced 2025-04-27 00:01:45 -04:00
10 lines
312 B
TypeScript
10 lines
312 B
TypeScript
// hidden-start
|
|
import { Variation } from './variation'
|
|
//hidden-end
|
|
export type PdjParams = {a: number, b: number, c: number, d: number};
|
|
export function pdj({a, b, c, d}: PdjParams): Variation {
|
|
return (x, y) => [
|
|
Math.sin(a * y) - Math.cos(b * x),
|
|
Math.sin(c * x) - Math.cos(d * y)
|
|
]
|
|
} |