class DYI::Shape::Path::CurveCommand
Public Class Methods
pt_cnt()
click to toggle source
# File lib/dyi/shape/path.rb, line 854 def pt_cnt 3 end
Public Instance Methods
control_point1()
click to toggle source
# File lib/dyi/shape/path.rb, line 841 def control_point1 @control_points[0] end
control_point2()
click to toggle source
# File lib/dyi/shape/path.rb, line 845 def control_point2 @control_points[1] end
instructions_char()
click to toggle source
# File lib/dyi/shape/path.rb, line 849 def instructions_char relative? ? 'c' : 'C' end
preceding_control_point()
click to toggle source
# File lib/dyi/shape/path.rb, line 833 def preceding_control_point if preceding_command.is_a?(CurveCommand) preceding_command.last_control_point else preceding_command.last_point end end