Triangle Drawer

By The Emerald Derp Leader

Really simple thing. I can’t be bothered to add anything functional to it, so for now all you can do is move one point of the triangle. I want to make this 3D, but I probably won’t even start that.

It took me much longer and harder than it should have because I was creating wrong solutions until I finally found the correct one. I probably spent 1+ hours on GeoGebra trying to find a solution.

How it works:
– defines a triangle
– checks the cross product of any two sides to determine orientation
– checks if cross product for a vector of a vertex to a point and one side. If it is inside the side then it continues for each side.
– if it passes the above condition, then a point is drawn 🎉

Get LowRes Coder to use this program.

Play homegrown retro games and program your own!