🧚‍♀️

This commit is contained in:
Ricky Reusser 2023-08-22 22:12:00 -07:00
parent 3ba5c3ad2b
commit a0662f545f
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -341,7 +341,7 @@ function run (regl) {
if (!state.t.field.kuttaCondition) return;
const R = Math.sqrt((1 - state.t.field.mux)**2 + state.t.field.muy**2);
state.t.field.circulation = 4 * Math.PI * R * Math.sin((state.t.field.alpha * Math.PI / 180) + Math.asin(state.t.field.muy / R));
if (immediate) smootheCirculation = state.t.field.circulation;
if (immediate) smoothedCirculation = state.t.field.circulation;
}
state.$path.t.field.muy.onChange(() => setCirculation(true));
state.$path.t.field.kuttaCondition.onChange(({value}) => {