Class: KvgCharacterRecognition::KvgParser::SVG_M
- Inherits:
-
Object
- Object
- KvgCharacterRecognition::KvgParser::SVG_M
- Defined in:
- lib/kvg_character_recognition/kvg_parser.rb
Overview
SVG_M represents the moveto command. SVG Syntax is: m x y It sets the current cursor to the point (x,y). As always, capitalization denotes absolute values. Takes a Point as argument. If given 2 Points, the second argument is treated as the current cursor.
Instance Method Summary collapse
- #current_cursor ⇒ Object
-
#initialize(p1, p2 = Point.new(0,0)) ⇒ SVG_M
constructor
A new instance of SVG_M.
- #to_points ⇒ Object
Constructor Details
Instance Method Details
#current_cursor ⇒ Object
55 56 57 |
# File 'lib/kvg_character_recognition/kvg_parser.rb', line 55 def current_cursor return @p end |
#to_points ⇒ Object
51 52 53 |
# File 'lib/kvg_character_recognition/kvg_parser.rb', line 51 def to_points return [] end |