Building a Triangle to tesselate

I have gotten two lines drawn but I am having trouble with the last one. I am pretty sure I need to use a Math function in the third line. I am trying to get it to tesselate in a windows form.

1
2
3
4
5
6
  case 3: //Draw Triangles
						 g->DrawLine(Pens::Red,0 + x * 20, 0 + y * 20, 40 + x * 20, 40 + y * 20);
						 g->DrawLine(Pens::Red,0 + x * 20, 0 + y * 20, 20 + x * 20, 0 + y * 20);
						 g->DrawLine(Pens::Black, 0 + x * 20, 60 + x * 20, 60 + x * 20, 10 + x * 20 );
						   
						   break;
Topic archived. No new replies allowed.