Class: Savage::Directions::VerticalTo

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

Instance Method Summary collapse

Instance Method Details

#toAbsolute(fromPoint) ⇒ Object



40
41
42
43
44
45
46
# File 'lib/monkeypatchsavage.rb', line 40

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