Skip to content

Conversation

@maxryan008
Copy link
Contributor

Updates to the canned food stuff

Cans now use k mean algorithm to calculate label color. Now cans represent the items inside of them slightly better. Mixed cans are still slightly muddy looking however
return centroids.get(largest);
}

private static float distanceSquared(Vector3f a, Vector3f b) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can get rid of this method and use this method instead.

e.g. a.distanceSquared(b) where a and b are both Vector3fs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants