CrImage::Math::Fixed::Rectangle26_6
Inherits Struct / Value / Object
Rectangle26_6 is a 26.6 fixed-point coordinate retangle. The min bound is inclusive and the max bound is exclusive. It is well-formed if min.x <= max.x and likewise for y.
It is analogous to the CrImage::Rectangle
Constructors
Class methods
Instance methods
eq reports whether this and Rectangle s contain the same set of points. All empty rectangles are considered equal.
intersect return the largest rectangle contained by both self and s. If the two rectangle do not overlap then the zero rectangle will be returned
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO) which can be overridden for custom implementations.
Also see #inspect.
union returns the smalles rectangle that contains both self and s