Class: Ucode::Glyphs::LastResort::Glif::Point

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



34
35
36
# File 'lib/ucode/glyphs/last_resort/glif.rb', line 34

def kind
  @kind
end

#xObject

Returns the value of attribute x

Returns:

  • (Object)

    the current value of x



34
35
36
# File 'lib/ucode/glyphs/last_resort/glif.rb', line 34

def x
  @x
end

#yObject

Returns the value of attribute y

Returns:

  • (Object)

    the current value of y



34
35
36
# File 'lib/ucode/glyphs/last_resort/glif.rb', line 34

def y
  @y
end

Instance Method Details

#on_curve?Boolean

Returns:

  • (Boolean)


35
36
37
# File 'lib/ucode/glyphs/last_resort/glif.rb', line 35

def on_curve?
  kind != :offcurve
end