CrImage::Math::Fixed
CrImage::Math::Fixed provides fixed-point arithmetic for precise positioning.
Fixed-point numbers are used in font rendering and graphics operations where sub-pixel precision is needed without floating-point overhead.
Class methods
p(x : Int32, y : Int32)
p returns the integer values x and y as a Point26_6. For example, passing the interger values(2,-3) yields Point26_6(128,-192)
r(min_x, min_y, max_x, max_y) : Rectangle26_6
r returns the integer values min_x, min_y, max_x, max_y as Rectangle26_6.
For example, passing the integer values (0,1,2,3) yields Rectangle26_6(Point26_6(0,64), Point26_6(128,192)).
Like the CrImage.rect function, the returned rectangle has
minimum and maximum coordinates swapped if necessary so that it is
well-formed