ILNumerics Ultimate VS

Vector3InverseSqrtFast Method

ILNumerics Ultimate VS Documentation
ILNumerics - Technical Application Development
Returns an approximation of the inverse square root of left number.

[ILNumerics Visualization Engine]

Namespace:  ILNumerics.Drawing
Assembly:  ILNumerics.Drawing (in ILNumerics.Drawing.dll) Version: ILNumerics Ultimate VS 4
Syntax

public static float InverseSqrtFast(
	float x
)

Parameters

x
Type: SystemSingle
A number.

Return Value

Type: Single
An approximation of the inverse square root of the specified number, with an upper error bound of 0.001
Remarks

This is an improved implementation of the the method known as Carmack's inverse square root which is found in the Quake III source code. This implementation comes from http://www.codemaestro.com/reviews/review00000105.html. For the history of this method, see http://www.beyond3d.com/content/articles/8/

[ILNumerics Visualization Engine]

See Also

Reference