Skip to content

Add edgeToVertexes function #1071

@ajfriend

Description

@ajfriend

It would be handy to have a function that provides the start and end vertices of an edge. I suppose such a function could work for both directed and (future) undirected edges. For the current directed edge mode, I think we would want the output vertices to be ordered according to the right hand rule:

Image

The API might look something like these:

H3Error edgeToVertexes(H3Index edge, H3Index *v1, H3Index *v2);
H3Error edgeToVertexes(H3Index edge, H3Index *vertexes);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions