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

math.rsqrt

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

Parameters

Parameter Description
x Value to use when computing reciprocal square root.

Returns

float The reciprocal square root.

Description

Returns the reciprocal square root of a float value.


Declaration

public static float2 rsqrt(float2 x);

Parameters

Parameter Description
x Value to use when computing reciprocal square root.

Returns

float2 The componentwise reciprocal square root.

Description

Returns the componentwise reciprocal square root of a float2 vector.


Declaration

public static float3 rsqrt(float3 x);

Parameters

Parameter Description
x Value to use when computing reciprocal square root.

Returns

float3 The componentwise reciprocal square root.

Description

Returns the componentwise reciprocal square root of a float3 vector.


Declaration

public static float4 rsqrt(float4 x);

Parameters

Parameter Description
x Value to use when computing reciprocal square root.

Returns

float4 The componentwise reciprocal square root.

Description

Returns the componentwise reciprocal square root of a float4 vector


Declaration

public static double rsqrt(double x);

Parameters

Parameter Description
x Value to use when computing reciprocal square root.

Returns

double The reciprocal square root.

Description

Returns the reciprocal square root of a double value.


Declaration

public static double2 rsqrt(double2 x);

Parameters

Parameter Description
x Value to use when computing reciprocal square root.

Returns

double2 The componentwise reciprocal square root.

Description

Returns the componentwise reciprocal square root of a double2 vector.


Declaration

public static double3 rsqrt(double3 x);

Parameters

Parameter Description
x Value to use when computing reciprocal square root.

Returns

double3 The componentwise reciprocal square root.

Description

Returns the componentwise reciprocal square root of a double3 vector.


Declaration

public static double4 rsqrt(double4 x);

Parameters

Parameter Description
x Value to use when computing reciprocal square root.

Returns

double4 The componentwise reciprocal square root.

Description

Returns the componentwise reciprocal square root of a double4 vector.