Skip to content

Instantly share code, notes, and snippets.

@cdoger
Last active December 20, 2015 22:39
Show Gist options
  • Save cdoger/6206344 to your computer and use it in GitHub Desktop.
Save cdoger/6206344 to your computer and use it in GitHub Desktop.
public boolean checkPoints(float x, float y) {
boolean sthSelected = false;
sthSelected = point1.isSelected(x, y);
if (!sthSelected)
sthSelected = point2.isSelected(x, y);
if (!sthSelected)
sthSelected = controlPoint.isSelected(x, y);
return sthSelected;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment