Triangles Geometic Layouts. Calculating the triangle coordinates for an image and calculating the row/column of a triangle given the coordinates