diff options
| author | Tim Redfern <tim@getdrop.com> | 2018-02-02 01:47:51 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2018-02-02 01:47:51 +0000 |
| commit | 7c50a03c5857310aa383b1ba89a18792c96724b1 (patch) | |
| tree | 97727831c97af5c06b39064dfdba60d61f7c7ae3 /gui/src/lineTransformer.h | |
| parent | 2b6c19dd192b07fe5980f667e26015da51c3106d (diff) | |
lots
Diffstat (limited to 'gui/src/lineTransformer.h')
| -rw-r--r-- | gui/src/lineTransformer.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gui/src/lineTransformer.h b/gui/src/lineTransformer.h new file mode 100644 index 0000000..8268b81 --- /dev/null +++ b/gui/src/lineTransformer.h @@ -0,0 +1,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); + +};
\ No newline at end of file |
