Calculating Setting And Corner Triangles