Skip to content
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

Update ex.Util.clamp to be smarter #536

Closed
eonarheim opened this issue Nov 17, 2015 · 0 comments
Closed

Update ex.Util.clamp to be smarter #536

eonarheim opened this issue Nov 17, 2015 · 0 comments
Labels
enhancement Label applied to enhancements or improvements to existing features good first issue good for people new to open source and Excalibur
Milestone

Comments

@eonarheim
Copy link
Member

Here is the code :P

function clamp(val, min, max) {
   return Math.min(Math.max(min, val), max);
}
@eonarheim eonarheim added good first issue good for people new to open source and Excalibur enhancement Label applied to enhancements or improvements to existing features on-deck labels Nov 17, 2015
@eonarheim eonarheim added this to the vNext milestone Nov 17, 2015
@jedeen jedeen modified the milestones: 0.11.0 Release, vNext Aug 29, 2016
jasonlh-harris added a commit to jasonlh-harris/Excalibur that referenced this issue Oct 26, 2016
@jedeen jedeen removed the on-deck label Oct 26, 2016
jasonlh-harris added a commit to jasonlh-harris/Excalibur that referenced this issue Dec 6, 2016
jasonlh-harris added a commit to jasonlh-harris/Excalibur that referenced this issue Dec 6, 2016
@jedeen jedeen modified the milestones: 0.9.0 Release, 0.11.0 Release Dec 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Label applied to enhancements or improvements to existing features good first issue good for people new to open source and Excalibur
Projects
None yet
Development

No branches or pull requests

2 participants