{"action":"created","issue":{"url":"https://api.github.com/repos/g-truc/glm/issues/372","labels_url":"https://api.github.com/repos/g-truc/glm/issues/372/labels{/name}","comments_url":"https://api.github.com/repos/g-truc/glm/issues/372/comments","events_url":"https://api.github.com/repos/g-truc/glm/issues/372/events","html_url":"https://github.com/g-truc/glm/issues/372","id":97949270,"number":372,"title":"glm::min / max difference behavior than std::min / max","user":{"login":"KammutierSpule","id":1185982,"avatar_url":"https://avatars.githubusercontent.com/u/1185982?v=3","gravatar_id":"","url":"https://api.github.com/users/KammutierSpule","html_url":"https://github.com/KammutierSpule","followers_url":"https://api.github.com/users/KammutierSpule/followers","following_url":"https://api.github.com/users/KammutierSpule/following{/other_user}","gists_url":"https://api.github.com/users/KammutierSpule/gists{/gist_id}","starred_url":"https://api.github.com/users/KammutierSpule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KammutierSpule/subscriptions","organizations_url":"https://api.github.com/users/KammutierSpule/orgs","repos_url":"https://api.github.com/users/KammutierSpule/repos","events_url":"https://api.github.com/users/KammutierSpule/events{/privacy}","received_events_url":"https://api.github.com/users/KammutierSpule/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/g-truc/glm/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-29T14:29:20Z","updated_at":"2015-07-29T21:26:29Z","closed_at":null,"body":"Hello!\r\nI am using float NAN to initialize my float vectors. In accord to the float.h from gnu builder, I found that it is expected that fmin fmax in the presence of a non number will choose the number.\r\ni.e:\r\nfmin( nan, value) == value\r\nfmax( nan, value) == value\r\n\r\nBut it looks like the glm::min / max is not behaving the same. is it supposed?\r\n\r\nBtw, is that too bad that I use a NAN to set the vector \"not initialized\" ?"},"comment":{"url":"https://api.github.com/repos/g-truc/glm/issues/comments/126099829","html_url":"https://github.com/g-truc/glm/issues/372#issuecomment-126099829","issue_url":"https://api.github.com/repos/g-truc/glm/issues/372","id":126099829,"user":{"login":"KammutierSpule","id":1185982,"avatar_url":"https://avatars.githubusercontent.com/u/1185982?v=3","gravatar_id":"","url":"https://api.github.com/users/KammutierSpule","html_url":"https://github.com/KammutierSpule","followers_url":"https://api.github.com/users/KammutierSpule/followers","following_url":"https://api.github.com/users/KammutierSpule/following{/other_user}","gists_url":"https://api.github.com/users/KammutierSpule/gists{/gist_id}","starred_url":"https://api.github.com/users/KammutierSpule/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KammutierSpule/subscriptions","organizations_url":"https://api.github.com/users/KammutierSpule/orgs","repos_url":"https://api.github.com/users/KammutierSpule/repos","events_url":"https://api.github.com/users/KammutierSpule/events{/privacy}","received_events_url":"https://api.github.com/users/KammutierSpule/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T21:26:29Z","updated_at":"2015-07-29T21:26:29Z","body":"I was checking,  there is a c99 fminf and fmaxf but I didn't test if the behaviour is the same.\r\nit should be:\r\nhttp://man7.org/linux/man-pages/man3/fmin.3.html\r\n"}}