openframeworks/openFrameworks — Issue #976: ofVec2f::average has unexpected/clumsy behaviour
Author: damiannz
Created: 2012-02-25 03:45:02+00:00
State: open

`ofVec2f` has a function called `average` which takes an array of `ofVec2f` and calculates the average. it is not static, rather it overwrites its own `x` and `y` with the average.

this is a little weird. `average` should be static, or at least be *returning* the average rather than assigning to self.