summaryrefslogtreecommitdiff
path: root/drawing/src/lineSegmenter.cpp
blob: f848272d2195259b37e05be34c5f45ea5aa2da1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "lineSegmenter.h"

const vector <ofPolyline> & lineSegmenter::getSegments(int num,float coverage, float phase) const{
	segments.clear();

	float spacing=1.0f/num;

	for (int i=0;i<num;i++){
		float endIndex=line.getIndexAtPercent(phase+(i*spacing));
	}

	float endlength=line.getIndex

	return segments;
}