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

math.isfinite

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 isfinite(float x);

Parameters

Parameter Description
x The float value to test.

Returns

bool True if the float is finite, false otherwise.

Description

Returns true if the input float is a finite floating point value, false otherwise.


Declaration

public static bool2 isfinite(float2 x);

Parameters

Parameter Description
x The float2 value to test.

Returns

bool2 A bool2 where it is true in a component if that component is finite, false otherwise.

Description

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


Declaration

public static bool3 isfinite(float3 x);

Parameters

Parameter Description
x The float3 value to test.

Returns

bool3 A bool3 where it is true in a component if that component is finite, false otherwise.

Description

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


Declaration

public static bool4 isfinite(float4 x);

Parameters

Parameter Description
x The float4 value to test.

Returns

bool4 A bool4 where it is true in a component if that component is finite, false otherwise.

Description

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


Declaration

public static bool isfinite(double x);

Parameters

Parameter Description
x The double value to test.

Returns

bool True if the double is finite, false otherwise.

Description

Returns true if the input double is a finite floating point value, false otherwise.


Declaration

public static bool2 isfinite(double2 x);

Parameters

Parameter Description
x The double2 value to test.

Returns

bool2 A bool2 where it is true in a component if that component is finite, false otherwise.

Description

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


Declaration

public static bool3 isfinite(double3 x);

Parameters

Parameter Description
x The double3 value to test.

Returns

bool3 A bool3 where it is true in a component if that component is finite, false otherwise.

Description

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


Declaration

public static bool4 isfinite(double4 x);

Parameters

Parameter Description
x The double4 value to test.

Returns

bool4 A bool4 where it is true in a component if that component is finite, false otherwise.

Description

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