Mac Guides | Samples

MonoMac.OpenGL.MathHelper.InverseSqrtFast Method

Returns an approximation of the inverse square root of left number.

Syntax

public static Double InverseSqrtFast (Double x)

Parameters

x
A number.

Returns

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/

Requirements

Namespace: MonoMac.OpenGL
Assembly: XamMac (in XamMac.dll)
Assembly Versions: 0.0.0.0