Skip to content

Instantly share code, notes, and snippets.

@cdoger
Last active December 20, 2015 19:49
Show Gist options
  • Select an option

  • Save cdoger/6186267 to your computer and use it in GitHub Desktop.

Select an option

Save cdoger/6186267 to your computer and use it in GitHub Desktop.
public void move(float newX, float newY) {
if (isSelected) {
this.x = newX;
this.y = newY;
left = x - BezierCurve.RADIUS - SENSITIVITY;
top = y - BezierCurve.RADIUS - SENSITIVITY;
right = x + BezierCurve.RADIUS + SENSITIVITY;
bottom = y + BezierCurve.RADIUS + SENSITIVITY;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment