Version: Unity 6.5 Alpha (6000.5)
LanguageEnglish
  • C#

math.isinf

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public static bool isinf(float x);

Parameters

Parameter Description
x Input value.

Returns

bool True if the input was an infinite value; false otherwise.

Description

Returns true if the input float is an infinite floating point value, false otherwise.


Declaration

public static bool2 isinf(float2 x);

Parameters

Parameter Description
x Input value.

Returns

bool2 True if the component was an infinite value; false otherwise.

Description

Returns a bool2 indicating for each component of a float2 whether it is an infinite floating point value.


Declaration

public static bool3 isinf(float3 x);

Parameters

Parameter Description
x Input value.

Returns

bool3 True if the component was an infinite value; false otherwise.

Description

Returns a bool3 indicating for each component of a float3 whether it is an infinite floating point value.


Declaration

public static bool4 isinf(float4 x);

Parameters

Parameter Description
x Input value.

Returns

bool4 True if the component was an infinite value; false otherwise.

Description

Returns a bool4 indicating for each component of a float4 whether it is an infinite floating point value.


Declaration

public static bool isinf(double x);

Parameters

Parameter Description
x Input value.

Returns

bool True if the input was an infinite value; false otherwise.

Description

Returns true if the input double is an infinite floating point value, false otherwise.


Declaration

public static bool2 isinf(double2 x);

Parameters

Parameter Description
x Input value.

Returns

bool2 True if the component was an infinite value; false otherwise.

Description

Returns a bool2 indicating for each component of a double2 whether it is an infinite floating point value.


Declaration

public static bool3 isinf(double3 x);

Parameters

Parameter Description
x Input value.

Returns

bool3 True if the component was an infinite value; false otherwise.

Description

Returns a bool3 indicating for each component of a double3 whether it is an infinite floating point value.


Declaration

public static bool4 isinf(double4 x);

Parameters

Parameter Description
x Input value.

Returns

bool4 True if the component was an infinite value; false otherwise.

Description

Returns a bool4 indicating for each component of a double4 whether it is an infinite floating point value.