Class: Zint::Structs::VectorHexagon

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/zint/structs/vector_hexagon.rb

Instance Method Summary collapse

Instance Method Details

#diameterObject

diameter



21
22
23
# File 'lib/zint/structs/vector_hexagon.rb', line 21

def diameter
  self[:diameter]
end

#rotationObject

0, 90, 180, 270 degrees



26
27
28
# File 'lib/zint/structs/vector_hexagon.rb', line 26

def rotation
  self[:rotation]
end

#xObject

x position



11
12
13
# File 'lib/zint/structs/vector_hexagon.rb', line 11

def x
  self[:x]
end

#yObject

y position



16
17
18
# File 'lib/zint/structs/vector_hexagon.rb', line 16

def y
  self[:y]
end