Class: Savage::Directions::QuadraticCurveTo

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

Instance Method Summary collapse

Instance Method Details

#toAbsolute(fromPoint) ⇒ Object



50
51
52
53
54
55
56
57
58
59
# File 'lib/monkeypatchsavage.rb', line 50

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