class Savage::Directions::VerticalTo
Public Instance Methods
command_code()
click to toggle source
# File lib/savage/directions/vertical_to.rb, line 4 def command_code (absolute?) ? 'V' : 'v' end
movement()
click to toggle source
# File lib/savage/directions/vertical_to.rb, line 26 def movement [nil, target] end
to_fully_transformable_dir( pen_x, pen_y )
click to toggle source
# File lib/savage/directions/vertical_to.rb, line 18 def to_fully_transformable_dir( pen_x, pen_y ) if absolute? LineTo.new( pen_x, target, true ) else LineTo.new( 0, target, false ) end end
transform(scale_x, skew_x, skew_y, scale_y, tx, ty)
click to toggle source
# File lib/savage/directions/vertical_to.rb, line 8 def transform(scale_x, skew_x, skew_y, scale_y, tx, ty) unless skew_x.zero? raise 'rotating or skewing (in X axis) an "vertical_to" direction is not supported yet.' end self.target *= scale_y self.target += ty if absolute? end