summaryrefslogtreecommitdiff
path: root/gui/src/lineTransformer.h
blob: 8268b8182e9923c5496e465eadbc61ab1428d917 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include "ofMain.h"

class lineTransformer {

	public:
		lineTransformer(){
		}
		void static drawWarpFrame(glm::vec2 warpframe[4]);
		void static gaussianElimination(float * input, int n);
		glm::mat4 static getPerspectiveTransformMatrix(const glm::vec2 src[4], const glm::vec2 dst[4]);
		ofPolyline static polyLineTransform(const ofPolyline& poly, ofMatrix4x4 xform);
		ofPolyline static makePolygon(int num,float diam);
		void static drawPoly(ofPolyline poly,float x,float y);

};