I know width and height of canvas. Canvas is rectangle.
I need to know what size of side triangle should have, and positions of vertices.
Its an easy question, I'm just bad at math/geometry.
I only understood that, if i had squarish canvas, i could just devide width and height by 3, and middle parts would become size of side of triangle. But its a rectangle, and i want a perfect triangle, if i'll try to apply it here, it would be stretched, so i need additional offset, and i have no idea how to calculate one. :V
its not for school or any other place, its just for a simple script that i wanna try to write, that will work with images, and i need to put perfect triangle there, in the center.