{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaGeometry/HyperRectangles.jl/issues/5","labels_url":"https://api.github.com/repos/JuliaGeometry/HyperRectangles.jl/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/JuliaGeometry/HyperRectangles.jl/issues/5/comments","events_url":"https://api.github.com/repos/JuliaGeometry/HyperRectangles.jl/issues/5/events","html_url":"https://github.com/JuliaGeometry/HyperRectangles.jl/pull/5","id":71835240,"number":5,"title":"Add distance functions","user":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars.githubusercontent.com/u/1282691?v=3","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-29T10:13:52Z","updated_at":"2015-04-30T22:22:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JuliaGeometry/HyperRectangles.jl/pulls/5","html_url":"https://github.com/JuliaGeometry/HyperRectangles.jl/pull/5","diff_url":"https://github.com/JuliaGeometry/HyperRectangles.jl/pull/5.diff","patch_url":"https://github.com/JuliaGeometry/HyperRectangles.jl/pull/5.patch"},"body":"This would add some distance function for the euclidean distance and the square of the euclidean distance (important for some performance application to support this) between two hyper rectangles and hyper rectangle and point. Both the total distance and the distance in one given dimension.\r\n\r\nSome notes:\r\n- Maybe there should be a check that the point and the hyper rect is the same dimension?\r\n- The function names feel a bit clunky, but I didn't figure out better ones.\r\n\r\nAny comments?"},"comment":{"url":"https://api.github.com/repos/JuliaGeometry/HyperRectangles.jl/issues/comments/97988868","html_url":"https://github.com/JuliaGeometry/HyperRectangles.jl/pull/5#issuecomment-97988868","issue_url":"https://api.github.com/repos/JuliaGeometry/HyperRectangles.jl/issues/5","id":97988868,"user":{"login":"KristofferC","id":1282691,"avatar_url":"https://avatars.githubusercontent.com/u/1282691?v=3","gravatar_id":"","url":"https://api.github.com/users/KristofferC","html_url":"https://github.com/KristofferC","followers_url":"https://api.github.com/users/KristofferC/followers","following_url":"https://api.github.com/users/KristofferC/following{/other_user}","gists_url":"https://api.github.com/users/KristofferC/gists{/gist_id}","starred_url":"https://api.github.com/users/KristofferC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KristofferC/subscriptions","organizations_url":"https://api.github.com/users/KristofferC/orgs","repos_url":"https://api.github.com/users/KristofferC/repos","events_url":"https://api.github.com/users/KristofferC/events{/privacy}","received_events_url":"https://api.github.com/users/KristofferC/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T22:22:53Z","updated_at":"2015-04-30T22:22:53Z","body":"I made some small updates after your comments.\r\n\r\nI still kept the 0 for the min distance function. My reasons for this is mostly because it is the actual answer to what the function name seem to answer: \"What is the minimum distance between the point and any point in the hyper rectangle\"."}}