@cuinjune wrote:
Hi, I'm trying to find out the average
ofVec2f
value fromvector<ofVec2f>
.I found out there is
ofVec2f::average(const ofVec2f *points, int num)
method which does the job but I can't figure out how to convertvector<ofVec2f>
toconst ofVec2f*
so I can pass the vector of ofVec2f as an argument.How can I pass
vector<ofVec2f>
to theofVec2f::average()
method?
Thanks in advance!
Posts: 4
Participants: 3