nulib ~master (2025-12-14T08:31:17.4307625)
Dub
Repo
Fixed.fromData
nulib
math
fixed
Fixed
Creates a new instance from raw data.
struct
Fixed
(T, size_t FRACT_BITS = (8 * (T.sizeof / 2)))
@
nogc
nothrow static
auto
fromData
(
T
data
)
if
(
__traits(
isIntegral
,
T
) &&
!__traits(
isUnsigned
,
T
)
)
Meta
Source
See Implementation
nulib
math
fixed
Fixed
aliases
Self
ValueT
constructors
this
enums
FRACT_DIV
functions
opAssign
opBinary
opCast
opEquals
opOpAssign
toHash
static functions
fromData
variables
FRACT_MASK
INT_MASK
SHIFT
data
max
min
Creates a new instance from raw data.