News for hackers. Stuff that matters.
Re:Show HN: Axis - a React.js multiplayer math game by dmak on Wednesday November 19, 2014 @07:31AM (#8629621)
I am not sure if this is a step function, but I saw someone pretty much do an octagon shape to hit someone. How?
Re:Show HN: Axis - a React.js multiplayer math game by madez on Wednesday November 19, 2014 @11:59AM (#8631129)
(x+1) * max(0, sign(x)) * (1-max(0, sign(x-1/sqrt(2)))) + (1+1/sqrt(2)) * (1-max(0, sign(x-1/sqrt(2)-1))) * max(0, sign(x-1/sqrt(2))) + (-x+sqrt(2)+2) * max(0, sign(x-1/sqrt(2)-1)) * (1-max(0, sign(x-sqrt(2)-1)))