Class: Wicket::Commands::T
- Inherits:
-
Wicket::Command
- Object
- Wicket::Command
- Wicket::Commands::T
- Includes:
- QuadraticBezier
- Defined in:
- lib/wicket/commands/t.rb
Constant Summary collapse
- ARGS =
2
- ARG_LIST =
[:x,:y]
Instance Attribute Summary
Attributes inherited from Wicket::Command
Instance Method Summary collapse
-
#initialize(absolute, cursor_start, subpath, opts, x, y) ⇒ T
constructor
A new instance of T.
Methods included from QuadraticBezier
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, x, y) ⇒ T
Returns a new instance of T.
8 9 10 11 12 13 14 15 16 |
# File 'lib/wicket/commands/t.rb', line 8 def initialize(absolute,cursor_start,subpath,opts,x,y) @absolute = absolute @cursor_start = cursor_start @subpath = subpath @opts = opts set_implicit_control_point! @x = x @y = y end |