Rechercher une page de manuel
isinf.3Cg
Langue: en
Version: 355345 (ubuntu - 24/10/10)
Section: 3 (Bibliothèques de fonctions)
NAME
isinf - test whether or not a scalar or each vector component is infiniteSYNOPSIS
bool isinf(float x); bool1 isinf(float1 x); bool2 isinf(float2 x); bool3 isinf(float3 x); bool4 isinf(float4 x);
bool isinf(half x); bool1 isinf(half1 x); bool2 isinf(half2 x); bool3 isinf(half3 x); bool4 isinf(half4 x);
bool isinf(fixed x); bool1 isinf(fixed1 x); bool2 isinf(fixed2 x); bool3 isinf(fixed3 x); bool4 isinf(fixed4 x);
PARAMETERS
- x
- Vector or scalar to test if infinite.
DESCRIPTION
Returns whether or not a scalar or each vector component is a (negative or positive) infinite value. Finite and not-a-number (NaN) values are not infinite.REFERENCE IMPLEMENTATION
isinf for float3 vectors could be implemented like this.bool3 isinf(float3 s) { // By IEEE 754 rule, 2*Inf equals Inf return (2*s == s) && (s != 0); }
PROFILE SUPPORT
isinf is supported in all profiles except fp20.SEE ALSO
isfinite, isnanContenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre