class Tesseract::Engine::BoundingBox

Public Class Methods

new(struct) click to toggle source
# File lib/tesseract/engine/bounding_box.rb, line 28
def initialize (struct)
        @internal = struct
end

Public Instance Methods

height() click to toggle source
# File lib/tesseract/engine/bounding_box.rb, line 45
def height
        bottom - top
end
inspect() click to toggle source
# File lib/tesseract/engine/bounding_box.rb, line 49
def inspect
        "#<BoundingBox(#{x}, #{y}): #{width}x#{height}>"
end
width() click to toggle source
# File lib/tesseract/engine/bounding_box.rb, line 41
def width
        right - left
end