mirror of https://github.com/adamdruppe/arsd.git
Improve documentation
This commit is contained in:
parent
5d839f34c2
commit
1aae3674dc
|
@ -291,7 +291,9 @@ private {
|
||||||
}
|
}
|
||||||
|
|
||||||
/++
|
/++
|
||||||
Integer square root
|
Calculates the square root
|
||||||
|
of an integer number
|
||||||
|
as an integer number.
|
||||||
+/
|
+/
|
||||||
ubyte intSqrt(const ubyte value) @safe pure nothrow @nogc {
|
ubyte intSqrt(const ubyte value) @safe pure nothrow @nogc {
|
||||||
switch (value) {
|
switch (value) {
|
||||||
|
@ -353,7 +355,9 @@ unittest {
|
||||||
}
|
}
|
||||||
|
|
||||||
/++
|
/++
|
||||||
Square root of a normalized integer
|
Calculates the square root
|
||||||
|
of the normalized value
|
||||||
|
representated by the input integer number.
|
||||||
|
|
||||||
Normalization:
|
Normalization:
|
||||||
`[0x00 .. 0xFF]` → `[0.0 .. 1.0]`
|
`[0x00 .. 0xFF]` → `[0.0 .. 1.0]`
|
||||||
|
|
Loading…
Reference in New Issue