Class: Savage::Directions::MoveTo
- Inherits:
-
PointTarget
- Object
- Savage::Direction
- PointTarget
- Savage::Directions::MoveTo
- Defined in:
- lib/savage/directions/move_to.rb
Instance Attribute Summary
Attributes inherited from PointTarget
Instance Method Summary collapse
Methods inherited from PointTarget
Methods inherited from Savage::Direction
#absolute?, #fully_transformable?, #initialize, #relative?, #to_command
Methods included from Transformable
#rotate, #scale, #skew_x, #skew_y, #translate
Methods included from Utils
Constructor Details
This class inherits a constructor from Savage::Directions::PointTarget
Instance Method Details
#command_code ⇒ Object
4 5 6 |
# File 'lib/savage/directions/move_to.rb', line 4 def command_code (absolute?) ? 'M' : 'm' end |
#transform(scale_x, skew_x, skew_y, scale_y, tx, ty) ⇒ Object
8 9 10 11 12 |
# File 'lib/savage/directions/move_to.rb', line 8 def transform(scale_x, skew_x, skew_y, scale_y, tx, ty) # relative move_to dont't need to be tranlated tx = ty = 0 if relative? transform_dot( target, scale_x, skew_x, skew_y, scale_y, tx, ty ) end |