{"action":"created","issue":{"url":"https://api.github.com/repos/traverseda/pycraft/issues/45","repository_url":"https://api.github.com/repos/traverseda/pycraft","labels_url":"https://api.github.com/repos/traverseda/pycraft/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/traverseda/pycraft/issues/45/comments","events_url":"https://api.github.com/repos/traverseda/pycraft/issues/45/events","html_url":"https://github.com/traverseda/pycraft/issues/45","id":149854418,"number":45,"title":"util.normalize() is rounding?","user":{"login":"ghevcoul","id":7060348,"avatar_url":"https://avatars.githubusercontent.com/u/7060348?v=3","gravatar_id":"","url":"https://api.github.com/users/ghevcoul","html_url":"https://github.com/ghevcoul","followers_url":"https://api.github.com/users/ghevcoul/followers","following_url":"https://api.github.com/users/ghevcoul/following{/other_user}","gists_url":"https://api.github.com/users/ghevcoul/gists{/gist_id}","starred_url":"https://api.github.com/users/ghevcoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghevcoul/subscriptions","organizations_url":"https://api.github.com/users/ghevcoul/orgs","repos_url":"https://api.github.com/users/ghevcoul/repos","events_url":"https://api.github.com/users/ghevcoul/events{/privacy}","received_events_url":"https://api.github.com/users/ghevcoul/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-04-20T18:50:55Z","updated_at":"2016-04-21T16:03:25Z","closed_at":"2016-04-21T00:54:54Z","body":"I'm working on writing some unit tests for some of the existing code and saw that the `normalize()` function in the util module is using `round()`. The documentation for the function says it returns the block containing the input position, so should this be using `math.floor()` instead?"},"comment":{"url":"https://api.github.com/repos/traverseda/pycraft/issues/comments/212987792","html_url":"https://github.com/traverseda/pycraft/issues/45#issuecomment-212987792","issue_url":"https://api.github.com/repos/traverseda/pycraft/issues/45","id":212987792,"user":{"login":"ghevcoul","id":7060348,"avatar_url":"https://avatars.githubusercontent.com/u/7060348?v=3","gravatar_id":"","url":"https://api.github.com/users/ghevcoul","html_url":"https://github.com/ghevcoul","followers_url":"https://api.github.com/users/ghevcoul/followers","following_url":"https://api.github.com/users/ghevcoul/following{/other_user}","gists_url":"https://api.github.com/users/ghevcoul/gists{/gist_id}","starred_url":"https://api.github.com/users/ghevcoul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghevcoul/subscriptions","organizations_url":"https://api.github.com/users/ghevcoul/orgs","repos_url":"https://api.github.com/users/ghevcoul/repos","events_url":"https://api.github.com/users/ghevcoul/events{/privacy}","received_events_url":"https://api.github.com/users/ghevcoul/received_events","type":"User","site_admin":false},"created_at":"2016-04-21T16:03:25Z","updated_at":"2016-04-21T16:03:25Z","body":"That makes more sense. I was assuming that the corners of a block would align with whole numbers with the center point being `[X.5, Y.5, Z.5]`, but in reality, the center point of the block is the whole number and the corners are at the .5s\r\n\r\nThis seems counter intuitive to me, but perhaps that just because I've played too much Minecraft."}}