mid in triangle defined