mirror of
https://github.com/g-truc/glm.git
synced 2024-11-10 12:41:54 +00:00
19 lines
484 B
C++
19 lines
484 B
C++
#include <glm/gtx/compatibility.hpp>
|
|
|
|
int main()
|
|
{
|
|
int Error(0);
|
|
|
|
Error += glm::isfinite(1.0f) ? 0 : 1;
|
|
Error += glm::isfinite(1.0) ? 0 : 1;
|
|
Error += glm::isfinite(-1.0f) ? 0 : 1;
|
|
Error += glm::isfinite(-1.0) ? 0 : 1;
|
|
|
|
Error += glm::all(glm::isfinite(glm::vec4(1.0f))) ? 0 : 1;
|
|
Error += glm::all(glm::isfinite(glm::dvec4(1.0))) ? 0 : 1;
|
|
Error += glm::all(glm::isfinite(glm::vec4(-1.0f))) ? 0 : 1;
|
|
Error += glm::all(glm::isfinite(glm::dvec4(-1.0))) ? 0 : 1;
|
|
|
|
return Error;
|
|
}
|