Class: PDF::TrimDetector::Point

Inherits:
Object
  • Object
show all
Defined in:
lib/pdf/trim_detector.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x, y) ⇒ Point

Returns a new instance of Point.



123
124
125
126
# File 'lib/pdf/trim_detector.rb', line 123

def initialize(x, y)
  @x = BigDecimal.new(x.to_s).round(1)
  @y = BigDecimal.new(y.to_s).round(1)
end

Instance Attribute Details

#xObject (readonly)

Returns the value of attribute x.



121
122
123
# File 'lib/pdf/trim_detector.rb', line 121

def x
  @x
end

#yObject (readonly)

Returns the value of attribute y.



121
122
123
# File 'lib/pdf/trim_detector.rb', line 121

def y
  @y
end