Class: Savage::Directions::HorizontalTo

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

Instance Method Summary collapse

Instance Method Details

#toAbsolute(fromPoint) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/monkeypatchsavage.rb', line 30

def toAbsolute(fromPoint)
  if not @absolute
    @target += fromPoint.x
  end
  @absolute = true
  return Point.new(@target,fromPoint.y)
end