class PDF::Reader::Point

PDFs are all about positioning content on a page, so there’s lots of need to work with a set of X,Y coordinates.

Attributes

x[R]
y[R]

Public Class Methods

new(x, y) click to toggle source
# File lib/pdf/reader/point.rb, line 15
def initialize(x, y)
  @x, @y = x, y
end

Public Instance Methods

==(other) click to toggle source
# File lib/pdf/reader/point.rb, line 19
def ==(other)
  other.respond_to?(:x) && other.respond_to?(:y) && x == other.x && y == other.y
end