#pragma once #include "ofMain.h" #include "colourPolyline.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 ofMatrix4x4 xform,const ofPolyline& poly); colourPolyline static polyLineTransform(const ofMatrix4x4 xform,colourPolyline& poly); ofPolyline static makePolygon(int num,float diam); void static drawPoly(ofPolyline poly,float x,float y); };