CrImage::Math::Fixed::Rectangle52_12
Inherits Reference / Object
Rectangle52_12 is a 52.12 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
Appends a short String representation of this object which includes its class name and its object address.
class Person
def initialize(@name : String, @age : Int32)
end
end
Person.new("John", 32).to_s # => #<Person:0x10a199f20>
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