Skip to content

Simplify Vertices and Edges collections, remove unneeded factory methods and favor collections over simple arrays #188

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 20, 2020

Conversation

clue
Copy link
Member

@clue clue commented Jan 20, 2020

// old
$vertices = Vertices::factory($arrayOfVertices);
$vertices->getVerticesIntersection($arrayOfVertices);

// new (already supported before)
$vertices = new Vertices($arrayOfVertices);
$vertices->getVerticesIntersection(new Vertices($arrayOfVertices));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant