struct

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

zero
Source

Instance methods

+(p : Point26_6)
Source
-(p : Point26_6)
Source
clone
Source
empty

empty reports whether the rectangle contains no points

Source
eq(s : Rectangle26_6)

eq reports whether this and Rectangle s contain the same set of points. All empty rectangles are considered equal.

Source
height
Source
in(s : Rectangle26_6)

in reports whether every point in this is in s

Source
intersect(s : Rectangle26_6)

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

Source
max=(max : Point26_6)
Source
min=(min : Point26_6)
Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
to_s

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.

Source
union(s : Rectangle26_6) : Rectangle26_6

union returns the smalles rectangle that contains both self and s

Source
width
Source