WlFixed

Fixed-point number

A WlFixed is a 24.8 signed fixed-point number with a sign bit, 23 bits of integer precision and 8 bits of decimal precision.

Constructors

this
this(uint raw)
Undocumented in source.

Members

Functions

opCast
int opCast()

Converts a fixed-point number to an integer.

opCast
double opCast()

Converts a fixed-point number to a floating-point number.

Properties

raw
uint raw [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

create
WlFixed create(int val)

Converts an integer to a fixed-point number.

create
WlFixed create(double val)

Converts a floating-point number to a fixed-point number.

Meta