Class: Ucode::Glyphs::LastResort::Glif::Point
- Inherits:
-
Struct
- Object
- Struct
- Ucode::Glyphs::LastResort::Glif::Point
- Defined in:
- lib/ucode/glyphs/last_resort/glif.rb
Overview
Single outline point. ‘kind` is one of `:offcurve`, `:move`, `:line`, `:curve`, `:qcurve`.
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#x ⇒ Object
Returns the value of attribute x.
-
#y ⇒ Object
Returns the value of attribute y.
Instance Method Summary collapse
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind
34 35 36 |
# File 'lib/ucode/glyphs/last_resort/glif.rb', line 34 def kind @kind end |
#x ⇒ Object
Returns the value of attribute x
34 35 36 |
# File 'lib/ucode/glyphs/last_resort/glif.rb', line 34 def x @x end |
#y ⇒ Object
Returns the value of attribute y
34 35 36 |
# File 'lib/ucode/glyphs/last_resort/glif.rb', line 34 def y @y end |
Instance Method Details
#on_curve? ⇒ Boolean
35 36 37 |
# File 'lib/ucode/glyphs/last_resort/glif.rb', line 35 def on_curve? kind != :offcurve end |