calculated triangle height