class DYI::Shape::Path::ShorthandCurveCommand

Public Class Methods

pt_cnt() click to toggle source
# File lib/dyi/shape/path.rb, line 882
def pt_cnt
  2
end

Public Instance Methods

control_point1() click to toggle source
# File lib/dyi/shape/path.rb, line 861
def control_point1
  if relative?
    preceding_point - preceding_control_point
  else
    preceding_point * 2 - preceding_control_point
  end
end
control_point2() click to toggle source
# File lib/dyi/shape/path.rb, line 869
def control_point2
  @control_points[0]
end
instructions_char() click to toggle source
# File lib/dyi/shape/path.rb, line 877
def instructions_char
  relative? ? 's' : 'S'
end
to_compatible_commands(preceding_command) click to toggle source
# File lib/dyi/shape/path.rb, line 873
def to_compatible_commands(preceding_command)
  CurveCommand.new(relative?, preceding_command, control_point1, control_point2, @point)
end