public class ApproximateSqrt
extends java.lang.Object
Constructor and Description |
---|
ApproximateSqrt() |
Modifier and Type | Method and Description |
---|---|
static float |
fastSqrt(float val)
Fast way to compute the sqrt of the value given.
|
static float |
ffsqrt(float n)
Faster way to compute the sqrt of the value given.
|
static float |
fsqrt(float x)
Fast way to compute the sqrt of the value given.
|
public static float fsqrt(float x)
x
- number given.public static float ffsqrt(float n)
n
- number given.public static float fastSqrt(float val)
val
- number given.