Class: Imogen::AutoCrop::Box::BoxInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/imogen/auto_crop/box.rb

Constant Summary collapse

SQUARISH =
5.to_f / 6

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x, y, r) ⇒ BoxInfo

Returns a new instance of BoxInfo.



69
70
71
72
73
# File 'lib/imogen/auto_crop/box.rb', line 69

def initialize(x,y,r)
  @x = x
  @y = y
  @radius = r
end

Instance Attribute Details

#radiusObject

Returns the value of attribute radius.



67
68
69
# File 'lib/imogen/auto_crop/box.rb', line 67

def radius
  @radius
end

#xObject (readonly)

Returns the value of attribute x.



66
67
68
# File 'lib/imogen/auto_crop/box.rb', line 66

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



66
67
68
# File 'lib/imogen/auto_crop/box.rb', line 66

def y
  @y
end