Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
public int lerp(float start, float target, float duration, float timeSinceStart){ | |
float value = start; | |
if(timeSinceStart>=0.0f && timeSinceStart < duration){ | |
float range = target - start; | |
float percent =timeSinceStart / duration; | |
value = start + range * percent; | |
} | |
else if(timeSinceStart>=duration) | |
value = target; | |
return Math.round(value); |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000