class Mindee::Geometry::Point

A relative set of coordinates (X, Y) on the document.

def [](key)

Returns:
  • (Float) -
def [](key)
  case key
  when 0
    @x
  when 1
    @y
  else
    throw '0 or 1 only'
  end
end

def initialize(x, y)

Parameters:
  • y (Float) --
  • x (Float) --
def initialize(x, y)
  @x = x
  @y = y
end