diff options
| author | Tim Redfern <redfernt@gmail.com> | 2023-09-20 23:35:53 +0100 |
|---|---|---|
| committer | Tim Redfern <redfernt@gmail.com> | 2023-09-20 23:35:53 +0100 |
| commit | cde8fab86a40be5d3c99bfd2d97605638647179f (patch) | |
| tree | 5f3d25c4eb6757ba399f746dfb96ea175ad8467f /futuregael/src/lineTransformer.h | |
| parent | d47d1294179af82651602c5b548658bcd3b7bdac (diff) | |
mostly works
Diffstat (limited to 'futuregael/src/lineTransformer.h')
| -rw-r--r-- | futuregael/src/lineTransformer.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/futuregael/src/lineTransformer.h b/futuregael/src/lineTransformer.h new file mode 100644 index 0000000..9e44d1a --- /dev/null +++ b/futuregael/src/lineTransformer.h @@ -0,0 +1,20 @@ +#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); + ofPolyline static polyLineTransform(ofPoint (*transferFunction)(const ofPoint),const ofPolyline& poly); + colourPolyline static polyLineTransform(const ofMatrix4x4 xform,colourPolyline& poly,float colourFade=1.0f); + colourPolyline static polyLineTransform(ofPoint (*transferFunction)(const ofPoint),colourPolyline& poly,float colourFade=1.0f); + ofPolyline static makePolygon(int num,float diam); + void static drawPoly(ofPolyline poly,float x,float y); +};
\ No newline at end of file |
