Fixed
A signed 32.32 fixed-point number.
The magnitude is stored as a u64 where the upper 32 bits represent the integer part and the lower 32 bits represent the fractional part. The sign is stored separately as a boolean.
Fully qualified path: cairo_fp::f64::types::fixed::Fixed
[derive(Copy, Drop, Serde)]
struct Fixed {
mag: u64,
sign: bool,
}
Members
mag
The absolute value in 32.32 format
Fully qualified path: cairo_fp::f64::types::fixed::Fixed::mag
mag: u64
sign
Sign flag: true = negative, false = positive
Fully qualified path: cairo_fp::f64::types::fixed::Fixed::sign
sign: bool