Skip to content

Commit

Permalink
pentagon -> isPent
Browse files Browse the repository at this point in the history
  • Loading branch information
dfellis committed Apr 7, 2021
1 parent 372c8e7 commit b744bed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/h3lib/lib/vertex.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,17 @@ static const int directionToVertexNumPent[NUM_DIGITS] = {
* if the direction is not valid for this cell
*/
int vertexNumForDirection(const H3Index origin, const Direction direction) {
int pentagon = H3_EXPORT(isPentagon)(origin);
int isPent = H3_EXPORT(isPentagon)(origin);
// Check for invalid directions
if (direction == CENTER_DIGIT || direction >= INVALID_DIGIT ||
(pentagon && direction == K_AXES_DIGIT))
(isPent && direction == K_AXES_DIGIT))
return INVALID_VERTEX_NUM;

// Determine the vertex rotations for this cell
int rotations = vertexRotations(origin);

// Find the appropriate vertex, rotating CCW if necessary
if (pentagon) {
if (isPent) {
return (directionToVertexNumPent[direction] + NUM_PENT_VERTS -
rotations) %
NUM_PENT_VERTS;
Expand Down

0 comments on commit b744bed

Please sign in to comment.