Class: Wicket::Commands::C

Inherits:
Wicket::Command show all
Includes:
CubicBezier
Defined in:
lib/wicket/commands/c.rb

Constant Summary collapse

ARGS =
6
ARG_LIST =
[:c1x,:c1y,:c2x,:c2y,:x,:y]

Instance Attribute Summary

Attributes inherited from Wicket::Command

#cursor_start, #x, #y

Instance Method Summary collapse

Methods included from CubicBezier

#c1, #c2, #control_points

Methods included from BezierCurve

#evaluate_curve, #to_svg, #to_wkt

Methods inherited from Wicket::Command

#absolute_x, #absolute_y, #arguments, #cursor_end, from_code, #subpath=, #to_svg, #to_wkt

Constructor Details

#initialize(absolute, cursor_start, subpath, opts, c1x, c1y, c2x, c2y, x, y) ⇒ C

Returns a new instance of C.



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/wicket/commands/c.rb', line 8

def initialize(absolute,cursor_start,subpath,opts,c1x,c1y,c2x,c2y,x,y)
  @absolute = absolute
  @cursor_start = cursor_start
  @subpath = subpath
  @opts = opts
  @c1x = c1x
  @c1y = c1y
  @c2x = c2x
  @c2y = c2y
  @x = x
  @y = y
end