/**
 *
 * @param {BinaryTopology} mesh
 * @param {number} edge_id
 * @param {number} vertex_id
 * @returns {boolean}
 */
export function bt_edge_has_vertex(mesh, edge_id, vertex_id) {
    const v1 = mesh.edge_read_vertex1(edge_id);

    if (v1 === vertex_id) {
        return true;
    }

    return mesh.edge_read_vertex2(edge_id) === vertex_id;
}
