this is a general algorithm question. sorry, i could not find the right place for this. so here it goes.
I have a line defined by 2 points a(x1,y1) and b(x2,y2). I want to draw a triangle as shown in the image.
i know it can be done as i have done it before (6 years ago, vb6). now i can't remember how i did it and i don't have the code with me anymore to use as a reference.
please help and thanks in advance.




Reply With Quote