FixMath

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

Meta