aboutsummaryrefslogtreecommitdiffstats
path: root/src/jogl/classes/jogamp/opengl/GLAutoDrawableBase.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-10-28 21:08:54 +0100
committerSven Gothel <[email protected]>2012-10-28 21:08:54 +0100
commit61c80ee66512b72e5ea1644bfef5fc60105fe445 (patch)
treee4a5ef21b3a508d137a34ce47e50e95cb38edcd8 /src/jogl/classes/jogamp/opengl/GLAutoDrawableBase.java
parentb7e84320dced5325bd7f7b4dda917b251e3915ab (diff)
Minor edits FBObject/GearsObject
Diffstat (limited to 'src/jogl/classes/jogamp/opengl/GLAutoDrawableBase.java')
0 files changed, 0 insertions, 0 deletions
">; private double x1; public FilterOneZero() { addPort(a0 = new UnitVariablePort("A0", 0.5)); addPort(a1 = new UnitVariablePort("A1", 0.5)); } @Override public void generate(int start, int limit) { double[] inputs = input.getValues(); double[] outputs = output.getValues(); double a0v = a0.getValue(); double a1v = a1.getValue(); for (int i = start; i < limit; i++) { double x0 = inputs[i]; outputs[i] = (a0v * x0) + (a1v * x1); x1 = x0; } } }