speice.io/blog/2024-11-15-playing-with-fire/src/pdj.ts

9 lines
262 B
TypeScript
Raw Normal View History

2024-11-19 21:42:03 -05:00
// hidden-start
import { Variation } from './variations'
//hidden-end
export function pdj(a: number, b: number, c: number, d: number): Variation {
return (x, y) => [
Math.sin(a * y) - Math.cos(b * x),
Math.sin(c * x) - Math.cos(d * y)
]
}