FixMath

Undocumented in source.

Members

Aliases

fix
alias fix = SignedBitsType!(COLOR.channelBits + coordinateBits)

Fixed-point type, big enough to hold a coordinate, with fractionary precision corresponding to channel precision.

fix2
alias fix2 = SignedBitsType!(COLOR.channelBits * 2 + coordinateBits)

Type to hold temporary values for multiplication and division

frac
alias frac = COLOR.ChannelType

Type only large enough to hold a fractionary part of a "fix" (i.e. color channel precision). Used for alpha values, etc.

frac2
alias frac2 = UnsignedBitsType!(COLOR.channelBits * 2)

Type to hold temporary values for multiplication and division

Functions

fixdiv
fix fixdiv(fix x, fix y)
Undocumented in source. Be warned that the author may not have intended to support it.
fixfpart
frac fixfpart(fix x)
Undocumented in source. Be warned that the author may not have intended to support it.
fixmul
fix fixmul(fix x, fix y)
Undocumented in source. Be warned that the author may not have intended to support it.
fixsqr
fix fixsqr(fix x)
Undocumented in source. Be warned that the author may not have intended to support it.
fixto
T fixto(fix x)
Undocumented in source. Be warned that the author may not have intended to support it.
fracmul
frac fracmul(frac x, frac y)
Undocumented in source. Be warned that the author may not have intended to support it.
fracsqr
frac fracsqr(frac x)
Undocumented in source. Be warned that the author may not have intended to support it.
tofix
fix tofix(T x)
Undocumented in source. Be warned that the author may not have intended to support it.
tofix
fix tofix(T x)
Undocumented in source. Be warned that the author may not have intended to support it.
tofrac
frac tofrac(T x)
Undocumented in source. Be warned that the author may not have intended to support it.
tofracBounded
frac tofracBounded(T x)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

coordinateBits
enum coordinateBits;
Undocumented in source.

Meta