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]

: Numeric

y[R]

: Numeric

Public Class Methods

new(x, y) click to toggle source

: (Numeric, Numeric) -> void

# File lib/pdf/reader/point.rb, line 20
def initialize(x, y)
  @x = x
  @y = y
end

Public Instance Methods

==(other) click to toggle source

: (PDF::Reader::Point) -> bool

# File lib/pdf/reader/point.rb, line 26
def ==(other)
  other.respond_to?(:x) && other.respond_to?(:y) && x == other.x && y == other.y
end