calculate triangulation simple linear