Module: Wicket::Commands::QuadraticBezier

Includes:
BezierCurve
Included in:
Q, T
Defined in:
lib/wicket/commands/quadratic_bezier.rb

Instance Method Summary collapse

Methods included from BezierCurve

#evaluate_curve, #to_svg, #to_wkt

Instance Method Details

#c1Object



10
11
12
# File 'lib/wicket/commands/quadratic_bezier.rb', line 10

def c1
  @absolute ? Coordinate.new(@c1x,@c1y) : @cursor_start.absolutize(@c1x,@c1y)
end

#control_pointsObject



6
7
8
# File 'lib/wicket/commands/quadratic_bezier.rb', line 6

def control_points
  [cursor_start,c1,cursor_end]
end