Class: Mathtype::RecordNudge

Inherits:
BinData::Record
  • Object
show all
Includes:
Snapshot
Defined in:
lib/records/nudge.rb

Constant Summary collapse

EXPOSED_IN_SNAPSHOT =
i(dx dy)

Instance Method Summary collapse

Methods included from Snapshot

#snapshot

Instance Method Details

#dxObject



26
27
28
# File 'lib/records/nudge.rb', line 26

def dx
  has_large_offset ? _large_dx : (_small_dx - 128)
end

#dyObject



30
31
32
# File 'lib/records/nudge.rb', line 30

def dy
  has_large_offset ? _large_dy : (_small_dy - 128)
end

#has_large_offsetObject



34
35
36
# File 'lib/records/nudge.rb', line 34

def has_large_offset
  _small_dx == -128 and _small_dy == -128
end