mirror of https://github.com/g-truc/glm.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
516 B
C++
20 lines
516 B
C++
#define GLM_ENABLE_EXPERIMENTAL
|
|
#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;
|
|
}
|